Documentation
¶
Index ¶
- Constants
- type DataBuffer
- type Env
- type Module
- func (m *Module) Data() (data []byte, memoryOffset int)
- func (m *Module) FuncSigs() (funcSigs []abi.Sig)
- func (m *Module) GlobalsSize() int
- func (m *Module) Load(r Reader, env Env, text TextBuffer, roData DataBuffer, roDataAddr int32, ...) (err error)
- func (m *Module) LoadCodeSection(r Reader, text TextBuffer, roData DataBuffer, roDataAddr int32, ...) (err error)
- func (m *Module) LoadDataSection(r Reader, data DataBuffer) (err error)
- func (m *Module) LoadPreliminarySections(r Reader, env Env) (err error)
- func (m *Module) MemoryLimits() (initial, maximum wasm.MemorySize)
- func (m *Module) ROData() (b []byte)
- func (m *Module) Sigs() []abi.Sig
- func (m *Module) Text() (b []byte)
- type ObjectMap
- type Reader
- type TextBuffer
Constants ¶
View Source
const (
DefaultMemoryAlignment = 16 // see Module.MemoryAlignment
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataBuffer ¶
type DataBuffer = module.DataBuffer
type Module ¶
type Module struct { EntrySymbol string EntryArgs []uint64 MemoryAlignment int // see Data() UnknownSectionLoader func(r Reader, payloadLen uint32) error module.M }
func (*Module) Data ¶
Data is available after data section has been loaded. memoryOffset is an offset into data. It will be a multiple of MemoryAlignment.
func (*Module) GlobalsSize ¶
GlobalsSize is available after preliminary sections have been loaded.
func (*Module) Load ¶
func (m *Module) Load(r Reader, env Env, text TextBuffer, roData DataBuffer, roDataAddr int32, data DataBuffer, objMap ObjectMap) (err error)
Load all (remaining) sections.
func (*Module) LoadCodeSection ¶
func (m *Module) LoadCodeSection(r Reader, text TextBuffer, roData DataBuffer, roDataAddr int32, objMap ObjectMap, startTrigger chan<- struct{}) (err error)
LoadCodeSection, after loading the preliminary sections.
func (*Module) LoadDataSection ¶
func (m *Module) LoadDataSection(r Reader, data DataBuffer) (err error)
LoadDataSection, after loading the preliminary sections.
func (*Module) LoadPreliminarySections ¶
LoadPreliminarySections, excluding the code and data sections.
func (*Module) MemoryLimits ¶
func (m *Module) MemoryLimits() (initial, maximum wasm.MemorySize)
MemoryLimits are available after preliminary sections have been loaded.
type TextBuffer ¶
type TextBuffer = module.TextBuffer
Click to show internal directories.
Click to hide internal directories.