Versions in this module Expand all Collapse all v0 v0.5.0 Jun 21, 2024 Changes in this version + func Call(cif *CIF, fn unsafe.Pointer, rvalue unsafe.Pointer, avalues []unsafe.Pointer) + func IsStruct(t *Type) bool + func PrepCIF(rtype *Type, argtypes []*Type) (*CIF, Status) + type ABI = C.ffi_abi + var DEFAULT_ABI ABI = C.FFI_DEFAULT_ABI + type Arg = C.ffi_arg + type CIF = C.ffi_cif + type Closure C.ffi_closure + type ClosureHandle func(cif *CIF, ret unsafe.Pointer, args []unsafe.Pointer) + type Status = C.ffi_status + var BAD_ABI Status = C.FFI_BAD_ABI + var BAD_TYPEDEF Status = C.FFI_BAD_TYPEDEF + var OK Status = C.FFI_OK + func CreateClosure(cif *CIF, f ClosureHandle) (codeloc unsafe.Pointer, udHandle cgo.Handle, status Status) + type Type = C.ffi_type + var TypeDouble *Type = &C.ffi_type_double + var TypeFloat *Type = &C.ffi_type_float + var TypePointer *Type = &C.ffi_type_pointer + var TypeSint16 *Type = &C.ffi_type_sint16 + var TypeSint32 *Type = &C.ffi_type_sint32 + var TypeSint64 *Type = &C.ffi_type_sint64 + var TypeSint8 *Type = &C.ffi_type_sint8 + var TypeUint16 *Type = &C.ffi_type_uint16 + var TypeUint32 *Type = &C.ffi_type_uint32 + var TypeUint64 *Type = &C.ffi_type_uint64 + var TypeUint8 *Type = &C.ffi_type_uint8 + var TypeVoid *Type = &C.ffi_type_void + func MakeStructType(types []*Type) *Type + type UserData struct