Documentation ¶
Overview ¶
Package variadic implements interfaces for various variadic C calling conventions
Index ¶
Constants ¶
View Source
const ( RDI = iota RDX RCX R8 R9 XMM0 XMM1 XMM2 XMM3 XMM4 XMM5 XMM6 XMM7 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionCall ¶
type FunctionCall struct { Words [14]uintptr NumFloat int64 NumMemory int64 Memory uintptr // contains filtered or unexported fields }
func NewFunctionCall ¶
func NewFunctionCall(name string) *FunctionCall
NewFunctionCall creates a new FunctionCall than can be used to call the C function named by the name parameter.
func NewFunctionCallAddr ¶
func NewFunctionCallAddr(addr unsafe.Pointer) *FunctionCall
NewFunctionCallAddr creates a new FunctionCall that can be used to cll the C function at the address given by the addr parameter.
func (*FunctionCall) Call ¶
func (f *FunctionCall) Call() uintptr
Call calls the FunctionCall's underlying function, returning its return value as an uintptr.
func (*FunctionCall) CallFloat32 ¶
func (f *FunctionCall) CallFloat32() float32
CallFloat32 calls the FunctionCall's underlying function, returning its return value as a float32.
func (*FunctionCall) CallFloat64 ¶
func (f *FunctionCall) CallFloat64() float64
CallFloat64 calls the FunctionCall's underlying function, returning its return value as float64.
Click to show internal directories.
Click to hide internal directories.