Documentation
¶
Index ¶
Constants ¶
View Source
const ( MagicNumber = uint32(0x6d736100) Version = uint32(1) )
View Source
const ( SectionUnknown = iota SectionType SectionImport SectionFunction SectionTable SectionMemory SectionGlobal SectionExport SectionStart SectionElement SectionCode SectionData NumSections )
View Source
const ( ExternalKindFunction = ExternalKind(iota) ExternalKindTable ExternalKindMemory ExternalKindGlobal )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataBuffer ¶ added in v0.3.0
type ExternalKind ¶
type ExternalKind byte
func (ExternalKind) String ¶
func (kind ExternalKind) String() (s string)
type ImportFunction ¶
type Module ¶ added in v0.3.0
type Module struct {
Sigs []function.Type
FuncSigs []uint32
ImportFuncs []ImportFunction
TableLimitValues ResizableLimits
MemoryLimitValues ResizableLimits
Globals []Global
NumImportGlobals int
EntryIndex uint32
EntryDefined bool
StartIndex uint32
StartDefined bool
TableFuncs []uint32
Text TextBuffer
RODataAddr int32
ROData DataBuffer
TrapLinks [trap.NumTraps]links.L
FuncLinks []links.FunctionL
FuncMap []int32
CallMap []CallSite
Regs regalloc.Allocator
Data DataBuffer
MemoryOffset int
}
type ResizableLimits ¶
type TextBuffer ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.