internals

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDivByZero   = errors.New("div by zero")
	ErrIntOverflow = errors.New("int overflow")
)
View Source
var (
	ErrOutOfMemory = errors.New("out of memory")
)

Functions

This section is empty.

Types

type Context

type Context struct {
	Mem     []byte
	MaxSize int

	G0 int32
	G1 int32
	G2 int32
	// contains filtered or unexported fields
}

func NewContext

func NewContext(f ImportedFuncs) *Context

func (*Context) Copy

func (c *Context) Copy() *Context

func (*Context) Free

func (c *Context) Free(p0 int32)

func (*Context) GetVM

func (c *Context) GetVM() int32

func (*Context) Malloc

func (c *Context) Malloc(p0 int32) int32

func (*Context) Start

func (c *Context) Start()

func (*Context) WrenAbortFiber

func (c *Context) WrenAbortFiber(p0 int32, p1 int32)

func (*Context) WrenCall

func (c *Context) WrenCall(p0 int32, p1 int32) int32

func (*Context) WrenCollectGarbage

func (c *Context) WrenCollectGarbage(p0 int32)

func (*Context) WrenEarlyExit

func (c *Context) WrenEarlyExit(p0 int32)

func (*Context) WrenEnsureSlots

func (c *Context) WrenEnsureSlots(p0 int32, p1 int32)

func (*Context) WrenFreeVM

func (c *Context) WrenFreeVM(p0 int32)

func (*Context) WrenGetAllocated

func (c *Context) WrenGetAllocated(p0 int32) int32

func (*Context) WrenGetListCount

func (c *Context) WrenGetListCount(p0 int32, p1 int32) int32

func (*Context) WrenGetListElement

func (c *Context) WrenGetListElement(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenGetMapContainsKey

func (c *Context) WrenGetMapContainsKey(p0 int32, p1 int32, p2 int32) int32

func (*Context) WrenGetMapCount

func (c *Context) WrenGetMapCount(p0 int32, p1 int32) int32

func (*Context) WrenGetMapValue

func (c *Context) WrenGetMapValue(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenGetSlotBool

func (c *Context) WrenGetSlotBool(p0 int32, p1 int32) int32

func (*Context) WrenGetSlotBytes

func (c *Context) WrenGetSlotBytes(p0 int32, p1 int32, p2 int32) int32

func (*Context) WrenGetSlotCount

func (c *Context) WrenGetSlotCount(p0 int32) int32

func (*Context) WrenGetSlotDouble

func (c *Context) WrenGetSlotDouble(p0 int32, p1 int32) float64

func (*Context) WrenGetSlotForeign

func (c *Context) WrenGetSlotForeign(p0 int32, p1 int32) int32

func (*Context) WrenGetSlotHandle

func (c *Context) WrenGetSlotHandle(p0 int32, p1 int32) int32

func (*Context) WrenGetSlotString

func (c *Context) WrenGetSlotString(p0 int32, p1 int32) int32

func (*Context) WrenGetSlotType

func (c *Context) WrenGetSlotType(p0 int32, p1 int32) int32

func (*Context) WrenGetUserData

func (c *Context) WrenGetUserData(p0 int32) int32

func (*Context) WrenGetVariable

func (c *Context) WrenGetVariable(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenGetVersionNumber

func (c *Context) WrenGetVersionNumber() int32

func (*Context) WrenHasModule

func (c *Context) WrenHasModule(p0 int32, p1 int32) int32

func (*Context) WrenHasVariable

func (c *Context) WrenHasVariable(p0 int32, p1 int32, p2 int32) int32

func (*Context) WrenInitConfiguration

func (c *Context) WrenInitConfiguration(p0 int32)

func (*Context) WrenInsertInList

func (c *Context) WrenInsertInList(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenInterpret

func (c *Context) WrenInterpret(p0 int32, p1 int32, p2 int32) int32

func (*Context) WrenMakeCallHandle

func (c *Context) WrenMakeCallHandle(p0 int32, p1 int32) int32

func (*Context) WrenNewVM

func (c *Context) WrenNewVM(p0 int32) int32

func (*Context) WrenReleaseHandle

func (c *Context) WrenReleaseHandle(p0 int32, p1 int32)

func (*Context) WrenRemoveMapValue

func (c *Context) WrenRemoveMapValue(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenSetListElement

func (c *Context) WrenSetListElement(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenSetMapValue

func (c *Context) WrenSetMapValue(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenSetSlotBool

func (c *Context) WrenSetSlotBool(p0 int32, p1 int32, p2 int32)

func (*Context) WrenSetSlotBytes

func (c *Context) WrenSetSlotBytes(p0 int32, p1 int32, p2 int32, p3 int32)

func (*Context) WrenSetSlotDouble

func (c *Context) WrenSetSlotDouble(p0 int32, p1 int32, p2 float64)

func (*Context) WrenSetSlotHandle

func (c *Context) WrenSetSlotHandle(p0 int32, p1 int32, p2 int32)

func (*Context) WrenSetSlotNewForeign

func (c *Context) WrenSetSlotNewForeign(p0 int32, p1 int32, p2 int32, p3 int32) int32

func (*Context) WrenSetSlotNewList

func (c *Context) WrenSetSlotNewList(p0 int32, p1 int32)

func (*Context) WrenSetSlotNewMap

func (c *Context) WrenSetSlotNewMap(p0 int32, p1 int32)

func (*Context) WrenSetSlotNull

func (c *Context) WrenSetSlotNull(p0 int32, p1 int32)

func (*Context) WrenSetSlotString

func (c *Context) WrenSetSlotString(p0 int32, p1 int32, p2 int32)

func (*Context) WrenSetUserData

func (c *Context) WrenSetUserData(p0 int32, p1 int32)

type ImportedFuncs

type ImportedFuncs interface {
	// module: wren, field: resolveModuleFn
	F0(ctx *Context, p0 int32, p1 int32, p2 int32) int32
	// module: wren, field: writeFn
	F1(ctx *Context, p0 int32, p1 int32)
	// module: wren, field: errorFn
	F2(ctx *Context, p0 int32, p1 int32, p2 int32, p3 int32, p4 int32)
	// module: wren, field: heapSettings
	F3(ctx *Context, p0 int32) int32
	// module: wren, field: loadModuleFn
	F4(ctx *Context, p0 int32, p1 int32) int32
	// module: wren, field: bindForeignMethodFn
	F5(ctx *Context, p0 int32, p1 int32, p2 int32, p3 int32, p4 int32) int32
	// module: wren, field: dispatchForeignMethodFn
	F6(ctx *Context, p0 int32, p1 int32)
	// module: wren, field: bindForeignClassFn
	F7(ctx *Context, p0 int32, p1 int32, p2 int32, p3 int32, p4 int32)
	// module: wren, field: dispatchFinalizerFn
	F8(ctx *Context, p0 int32, p1 int32, p2 int32)
	// module: wren, field: clock
	F9(ctx *Context) float64
	// module: wren, field: seed
	F10(ctx *Context) int32
	// module: wasi_snapshot_preview1, field: fd_close
	F11(ctx *Context, p0 int32) int32
	// module: wasi_snapshot_preview1, field: fd_fdstat_get
	F12(ctx *Context, p0 int32, p1 int32) int32
	// module: wasi_snapshot_preview1, field: fd_seek
	F13(ctx *Context, p0 int32, p1 int64, p2 int32, p3 int32) int32
	// module: wasi_snapshot_preview1, field: fd_write
	F14(ctx *Context, p0 int32, p1 int32, p2 int32, p3 int32) int32
	// module: wasi_snapshot_preview1, field: proc_exit
	F15(ctx *Context, p0 int32)
}

Source Files

Jump to

Keyboard shortcuts

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