module

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MagicNumber = uint32(0x6d736100)
	Version     = uint32(1)
)
View Source
const (
	SectionCustom = SectionId(iota)
	SectionType
	SectionImport
	SectionFunction
	SectionTable
	SectionMemory
	SectionGlobal
	SectionExport
	SectionStart
	SectionElement
	SectionCode
	SectionData

	NumSections
	NumMetaSections = SectionElement + 1
)
View Source
const (
	ExternalKindFunction = ExternalKind(iota)
	ExternalKindTable
	ExternalKindMemory
	ExternalKindGlobal
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalKind

type ExternalKind byte

func (ExternalKind) String

func (kind ExternalKind) String() (s string)

type Global

type Global struct {
	Type    wa.Type
	Mutable bool
	Init    uint64
}
type Header struct {
	MagicNumber uint32
	Version     uint32
}

type Import added in v0.5.0

type Import struct {
	Module string
	Field  string
}

type ImportFunc added in v0.3.1

type ImportFunc struct {
	Import
	VecIndex int
	Variadic bool
}

type M added in v0.3.1

type M struct {
	Types             []wa.FuncType
	Funcs             []uint32
	ImportFuncs       []ImportFunc
	TableLimitValues  ResizableLimits
	MemoryLimitValues ResizableLimits
	Globals           []Global
	ImportGlobals     []Import
	EntryIndex        uint32
	EntryDefined      bool
	ExportFuncs       map[string]uint32
	StartIndex        uint32
	StartDefined      bool
	TableFuncs        []uint32
}

type ResizableLimits

type ResizableLimits struct {
	Initial int
	Maximum int
	Defined bool
}

type SectionId added in v0.6.0

type SectionId byte

func (SectionId) String added in v0.6.0

func (id SectionId) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL