Versions in this module Expand all Collapse all v0 v0.9.9 Dec 31, 2024 v0.9.8 Nov 27, 2024 Changes in this version + var Typ = []*Type + var TypeBool = &Type + var TypeComplex128 = &Type + var TypeComplex64 = &Type + var TypeFloat32 = &Type + var TypeFloat64 = &Type + var TypeInt = &Type + var TypeInt16 = &Type + var TypeInt32 = &Type + var TypeInt64 = &Type + var TypeInt8 = &Type + var TypeInterface = StructOf(TypePointer, TypePointer) + var TypePointer = &Type + var TypeSlice = StructOf(TypePointer, TypeInt, TypeInt) + var TypeString = StructOf(TypePointer, TypeInt) + var TypeUint = &Type + var TypeUint16 = &Type + var TypeUint32 = &Type + var TypeUint64 = &Type + var TypeUint8 = &Type + var TypeUintptr = &Type + var TypeVoid = &Type + func Call(cif *Signature, fn unsafe.Pointer, ret unsafe.Pointer, args ...unsafe.Pointer) + func Index(args *unsafe.Pointer, i uintptr) unsafe.Pointer + type BasicKind int + const Bool + const Byte + const Complex128 + const Complex64 + const Float32 + const Float64 + const Int + const Int16 + const Int32 + const Int64 + const Int8 + const Interface + const Rune + const Slice + const String + const Uint + const Uint16 + const Uint32 + const Uint64 + const Uint8 + const Uintptr + const UnsafePointer + const Void + type Closure struct + Fn unsafe.Pointer + func NewClosure() *Closure + func (c *Closure) Bind(cif *Signature, fn ffi.ClosureFunc, userdata unsafe.Pointer) error + func (c *Closure) Free() + type Error int + func (s Error) Error() string + type Signature = ffi.Cif + func NewSignature(ret *Type, args ...*Type) (*Signature, error) + func NewSignatureVar(ret *Type, fixed int, args ...*Type) (*Signature, error) + type Type = ffi.Type + func ArrayOf(elem *Type, N int) *Type + func StructOf(fields ...*Type) *Type