wasman

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

func (*Instance) Call

func (i *Instance) Call(name string, args ...any) (any, error)

type Interpreter

type Interpreter struct {
	Memory []byte
	// contains filtered or unexported fields
}

func (*Interpreter) Halt

func (i *Interpreter) Halt() error

func (*Interpreter) Init

func (i *Interpreter) Init() error

func (*Interpreter) Load

func (i *Interpreter) Load(code engine.Reader) error

func (*Interpreter) MemoryData

func (i *Interpreter) MemoryData(ptr, sz uint32) ([]byte, error)

func (*Interpreter) Name

func (i *Interpreter) Name() string

func (*Interpreter) Run

func (i *Interpreter) Run() (engine.Instance, error)

func (*Interpreter) SetModules

func (i *Interpreter) SetModules(modules wypes.Modules) error

Jump to

Keyboard shortcuts

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