exec

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Globals added in v1.2.0

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

func (*Globals) SetRegistry added in v1.2.0

func (g *Globals) SetRegistry(r delegate.Registry)

type Opt added in v1.1.0

type Opt func(*VM)

func WithMemory added in v1.1.0

func WithMemory(m memory.Memory) Opt

func WithRegistry added in v1.2.0

func WithRegistry(reg delegate.Registry) Opt

func WithStackSize added in v1.1.0

func WithStackSize(n uint32) Opt

type VM

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

func New

func New(opts ...Opt) *VM

func (*VM) Exec

func (v *VM) Exec(bcode []byte) (memory.Addr, error)

Jump to

Keyboard shortcuts

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