Documentation
¶
Index ¶
- type Buffer
- type Environment
- type InsnMap
- type Module
- func (m *Module) CallMap() []byte
- func (m *Module) Data() (data []byte, memoryOffset int)
- func (m *Module) FunctionMap() []byte
- func (m *Module) FunctionSignatures() (funcSigs []types.Function)
- func (m *Module) Load(r Reader, env Environment, textBuffer Buffer, roDataBuf []byte, ...) (err error)
- func (m *Module) LoadCodeSection(r Reader, textBuffer Buffer, roDataBuf []byte, roDataAbsAddr int32, ...) (err error)
- func (m *Module) LoadDataSection(r Reader) (err error)
- func (m *Module) LoadPreliminarySections(r Reader, env Environment) (err error)
- func (m *Module) MemoryLimits() (initial, maximum wasm.MemorySize)
- func (m *Module) ROData() []byte
- func (m *Module) Signatures() []types.Function
- func (m *Module) Text() (b []byte)
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Module ¶
type Module struct { EntrySymbol string EntryArgs []uint64 UnknownSectionLoader func(r Reader, payloadLen uint32) error InsnMap InsnMap module.Internal }
func (*Module) FunctionMap ¶
FunctionMap is available after code section has been loaded.
func (*Module) FunctionSignatures ¶
FunctionSignatures are available after preliminary sections have been loaded.
func (*Module) Load ¶
func (m *Module) Load(r Reader, env Environment, textBuffer Buffer, roDataBuf []byte, roDataAbsAddr int32, startTrigger chan<- struct{}) (err error)
Load all (remaining) sections.
func (*Module) LoadCodeSection ¶
func (m *Module) LoadCodeSection(r Reader, textBuffer Buffer, roDataBuf []byte, roDataAbsAddr int32, startTrigger chan<- struct{}) (err error)
LoadCodeSection, after loading the preliminary sections.
func (*Module) LoadDataSection ¶
LoadDataSection, after loading the preliminary sections.
func (*Module) LoadPreliminarySections ¶
func (m *Module) LoadPreliminarySections(r Reader, env Environment) (err error)
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.
func (*Module) Signatures ¶
Signatures are available after preliminary sections have been loaded.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.