vm

package
v1.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeFunc

type NativeFunc = func(args []w.Value) ([]w.Value, error)

type Wasm

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

func NewWasm

func NewWasm(code []byte, imports []WasmImport) (*Wasm, error)

func (*Wasm) ExecuteFunction

func (wasm *Wasm) ExecuteFunction(name string, args ...interface{}) (interface{}, error)

func (*Wasm) GetFunction

func (wasm *Wasm) GetFunction(name string) (w.NativeFunction, error)

func (*Wasm) GetMemory

func (wasm *Wasm) GetMemory(name string) ([]byte, error)

type WasmImport

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

type WasmImportFunc

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

Jump to

Keyboard shortcuts

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