Documentation ¶
Index ¶
- Constants
- Variables
- func LoadFFI(yocks yocki.YockScheduler)
- func New() *yockffi
- type Builder
- type Cif
- type FFI_FN
- type Field
- type Function
- type Instance
- func (i *Instance) Addr() interface{}
- func (in Instance) Field(name string) (reflect.Value, error)
- func (i *Instance) Interface() interface{}
- func (in *Instance) SetBool(name string, value bool)
- func (in *Instance) SetFloat64(name string, value float64)
- func (in *Instance) SetInt(name string, value int)
- func (in *Instance) SetInt64(name string, value int64)
- func (in *Instance) SetString(name, value string)
- type Lib
- type Record
- type Result
- func (res *Result) Double() float64
- func (res *Result) Float() float32
- func (res *Result) Int() int
- func (res *Result) Int16() int16
- func (res *Result) Int32() int32
- func (res *Result) Int64() int64
- func (res *Result) Int8() int8
- func (res *Result) Pointer() unsafe.Pointer
- func (res *Result) String() string
- func (res *Result) Uint() uint
- func (res *Result) Uint16() uint16
- func (res *Result) Uint32() uint32
- func (res *Result) Uint64() uint64
- func (res *Result) Uint8() uint8
- type Struct
- type Type
Constants ¶
View Source
const ( ABIFirst ffiABI = C.FFI_FIRST_ABI ABIDefault ffiABI = C.FFI_DEFAULT_ABI ABILast ffiABI = C.FFI_LAST_ABI )
View Source
const ( FFIStatusOk ffiStatus = C.FFI_OK FFIStatusBadTypeDef ffiStatus = C.FFI_BAD_TYPEDEF FFIStatusBadAbi ffiStatus = C.FFI_BAD_ABI )
View Source
const NilPtr uintptr = 0
Variables ¶
View Source
var Archive *typeArchive
View Source
var (
ErrFieldNoExist error = errors.New("field no exist")
)
View Source
var PtrSize = unsafe.Sizeof(NilPtr)
Functions ¶
func LoadFFI ¶
func LoadFFI(yocks yocki.YockScheduler)
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AddFloat64 ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) SetFloat64 ¶
Click to show internal directories.
Click to hide internal directories.