dyncall

package
v0.0.0-...-46f7491 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: 0BSD Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Void             = C.DC_SIGCHAR_VOID
	Bool             = C.DC_SIGCHAR_BOOL
	Char             = C.DC_SIGCHAR_CHAR
	UnsignedChar     = C.DC_SIGCHAR_UCHAR
	Short            = C.DC_SIGCHAR_SHORT
	UnsignedShort    = C.DC_SIGCHAR_USHORT
	Int              = C.DC_SIGCHAR_INT
	Uint             = C.DC_SIGCHAR_UINT
	Long             = C.DC_SIGCHAR_LONG
	UnsignedLong     = C.DC_SIGCHAR_ULONG
	LongLong         = C.DC_SIGCHAR_LONGLONG
	UnsignedLongLong = C.DC_SIGCHAR_ULONGLONG
	Float            = C.DC_SIGCHAR_FLOAT
	Double           = C.DC_SIGCHAR_DOUBLE
	Pointer          = C.DC_SIGCHAR_POINTER
	String           = C.DC_SIGCHAR_STRING
	Aggregate        = C.DC_SIGCHAR_AGGREGATE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args C.DCArgs

func (*Args) Bool

func (args *Args) Bool() C.DCbool

func (*Args) Char

func (args *Args) Char() C.DCchar

func (*Args) Double

func (args *Args) Double() C.DCdouble

func (*Args) Float

func (args *Args) Float() C.DCfloat

func (*Args) Int

func (args *Args) Int() C.DCint

func (*Args) Long

func (args *Args) Long() C.DClong

func (*Args) LongLong

func (args *Args) LongLong() C.DClonglong

func (*Args) Pointer

func (args *Args) Pointer() C.DCpointer

func (*Args) Short

func (args *Args) Short() C.DCshort

func (*Args) UnsignedChar

func (args *Args) UnsignedChar() C.DCuchar

func (*Args) UnsignedInt

func (args *Args) UnsignedInt() C.DCuint

func (*Args) UnsignedLong

func (args *Args) UnsignedLong() C.DCulong

func (*Args) UnsignedLongLong

func (args *Args) UnsignedLongLong() C.DCulonglong

func (*Args) UnsignedShort

func (args *Args) UnsignedShort() C.DCushort

type Callback

type Callback C.DCCallback

func NewCallback

func NewCallback(sig Signature, handler CallbackHandler) *Callback

func (*Callback) Free

func (callback *Callback) Free()

type CallbackHandler

type CallbackHandler func(*Callback, *Args, unsafe.Pointer) rune

type Signature

type Signature struct {
	Args    []rune
	Returns rune
}

type VM

type VM struct {
	// contains filtered or unexported fields
}

func NewVM

func NewVM(size int) *VM

func (*VM) Call

func (vm *VM) Call(address unsafe.Pointer)

func (*VM) CallBool

func (vm *VM) CallBool(address unsafe.Pointer) bool

func (*VM) CallChar

func (vm *VM) CallChar(address unsafe.Pointer) int8

func (*VM) CallDouble

func (vm *VM) CallDouble(address unsafe.Pointer) float64

func (*VM) CallFloat

func (vm *VM) CallFloat(address unsafe.Pointer) float32

func (*VM) CallInt

func (vm *VM) CallInt(address unsafe.Pointer) int32

func (*VM) CallLong

func (vm *VM) CallLong(address unsafe.Pointer) int

func (*VM) CallLongLong

func (vm *VM) CallLongLong(address unsafe.Pointer) int64

func (*VM) CallPointer

func (vm *VM) CallPointer(address unsafe.Pointer) unsafe.Pointer

func (*VM) CallShort

func (vm *VM) CallShort(address unsafe.Pointer) int16

func (*VM) Free

func (vm *VM) Free()

func (*VM) PushBool

func (vm *VM) PushBool(value bool)

func (*VM) PushChar

func (vm *VM) PushChar(value int8)

func (*VM) PushDouble

func (vm *VM) PushDouble(value float64)

func (*VM) PushFloat

func (vm *VM) PushFloat(value float32)

func (*VM) PushPointer

func (vm *VM) PushPointer(value unsafe.Pointer)

func (*VM) PushShort

func (vm *VM) PushShort(value int16)

func (*VM) PushSignedInt

func (vm *VM) PushSignedInt(value int32)

func (*VM) PushSignedLong

func (vm *VM) PushSignedLong(value int)

func (*VM) PushSignedLongLong

func (vm *VM) PushSignedLongLong(value int64)

func (*VM) Reset

func (vm *VM) Reset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL