program

package
v0.0.0-...-33a8185 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMD64PlatformABI

type AMD64PlatformABI struct{}

func (*AMD64PlatformABI) ConvertToGoABI

func (p *AMD64PlatformABI) ConvertToGoABI(code *MachineCode) error

type Arg

type Arg = uintptr

Arg is an integral type that corresponds to a machine register.

type Callable

type Callable = func(Arg, Arg) Result

type MachineCode

type MachineCode struct {
	Code []byte
	// contains filtered or unexported fields
}

func NewMachineCode

func NewMachineCode(code []byte) *MachineCode

func (*MachineCode) Execute

func (m *MachineCode) Execute(arg0, arg1 Arg) (Result, error)

func (*MachineCode) RawFuncPtr

func (m *MachineCode) RawFuncPtr() (uintptr, error)

func (*MachineCode) Release

func (m *MachineCode) Release() error

type PlatformABI

type PlatformABI interface {
	// ConvertToGoABI converts the native calling convention to
	// Go calling convention. The MachineCode object is modified.
	ConvertToGoABI(code *MachineCode) error
}

func NewAMD64PlatformABI

func NewAMD64PlatformABI() PlatformABI

type Result

type Result = uintptr

Result is the type for return values.

Jump to

Keyboard shortcuts

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