Documentation
¶
Index ¶
- Variables
- func CheckConsumption(load *loader.L, payloadOffset int64, payloadSize uint32, partial bool)
- func Find(findID module.SectionID, load *loader.L, mapper ModuleMapper, ...) (int64, module.SectionID)
- func LoadPayloadSize(sectionOffset int64, id module.SectionID, load *loader.L, mapper ModuleMapper) uint32
- type ModuleMapper
Constants ¶
This section is empty.
Variables ¶
View Source
var Unwrapped = errors.New("section unwrapped")
Functions ¶
func CheckConsumption ¶ added in v0.34.0
func LoadPayloadSize ¶ added in v0.34.0
Types ¶
type ModuleMapper ¶ added in v0.34.0
type ModuleMapper interface {
// PutSection is invoked just after the payload length has been read.
// Section offset is the position of the section id. Section size covers
// section id byte, encoded payload length, and payload content.
PutSection(sectionID byte, sectionOffset int64, sectionSize, payloadSize uint32) error
}
ModuleMapper gathers information about positions of WebAssembly sections.
Click to show internal directories.
Click to hide internal directories.