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
Click to show internal directories.
Click to hide internal directories.