config

package
v0.0.0-...-87e38ef Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// MemoryPageSize is the unit of memory length in WebAssembly,
	// and is defined as 2^16 = 65536.
	// See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#memory-instances%E2%91%A0
	DefaultMemoryPageSize = 65536
	// MemoryMaxPages is maximum number of pages defined (2^16).
	// See https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#grow-mem
	DefaultMemoryMaxPages = 65536
	// MemoryPageSizeInBits satisfies the relation: "1 << MemoryPageSizeInBits == MemoryPageSize".
	DefaultMemoryPageSizeInBits = 16
)

Variables

View Source
var (
	// ErrShadowing wont appear if LinkerConfig.DisableShadowing is default false
	ErrShadowing = errors.New("shadowing is disabled")
)

Functions

This section is empty.

Types

type LinkerConfig

type LinkerConfig struct {
	DisableShadowing bool // false by default
}

LinkerConfig is the config applied to the wasman.Linker

type ModuleConfig

type ModuleConfig struct {
	DisableFloatPoint bool
	TollStation       tollstation.TollStation
	CallDepthLimit    *uint64
	Recover           bool // avoid panic inside vm
}

ModuleConfig is the config applied to the wasman.Module

type WASIConfig

type WASIConfig struct {
}

WASIConfig : TODO

Jump to

Keyboard shortcuts

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