Documentation ¶
Index ¶
- Constants
- func Call(cif *Cif, fn unsafe.Pointer, rvalue unsafe.Pointer, avalue *unsafe.Pointer)
- func ClosureAlloc(code *unsafe.Pointer) unsafe.Pointer
- func ClosureFree(unsafe.Pointer)
- func Index(args *unsafe.Pointer, i uintptr) unsafe.Pointer
- func PreClosureLoc(closure unsafe.Pointer, cif *Cif, fn ClosureFunc, userdata unsafe.Pointer, ...) c.Uint
- func PrepCif(cif *Cif, abi c.Uint, nargs c.Uint, rtype *Type, atype **Type) c.Uint
- func PrepCifVar(cif *Cif, abi c.Uint, nfixedargs c.Uint, ntotalargs c.Uint, rtype *Type, ...) c.Uint
- type Cif
- type ClosureFunc
- type Type
Constants ¶
View Source
const ( LLGoPackage = "link: $(pkg-config --libs libffi); -lffi" LLGoFiles = "$(pkg-config --cflags libffi): _wrap/libffi.c" )
View Source
const ( Void = iota Int Float Double LongDouble Uint8 Sint8 Uint16 Sint16 Uint32 Sint32 Uint64 Sint64 Struct Pointer Complex )
View Source
const ( OK = iota BAD_TYPEDEF BAD_ABI BAD_ARGTYPE )
View Source
const (
DefaultAbi = 2
)
Variables ¶
This section is empty.
Functions ¶
func ClosureAlloc ¶
void *ffi_closure_alloc (size_t size, void **code);
func PreClosureLoc ¶
Types ¶
type ClosureFunc ¶
Click to show internal directories.
Click to hide internal directories.