package constant
import "github.com/open-policy-agent/opa/internal/wasm/constant"
Package constant contains WASM constant definitions.
Index ¶
Constants ¶
const ( CustomSectionID uint8 = iota TypeSectionID ImportSectionID FunctionSectionID TableSectionID MemorySectionID GlobalSectionID ExportSectionID StartSectionID ElementSectionID CodeSectionID DataSectionID )
WASM module section IDs.
ValueType represents an intrinsic value type in WASM.
WASM import descriptor types.
WASM export descriptor types.
WASM global varialbe mutability flag.
const BlockTypeEmpty byte = 0x40
BlockTypeEmpty represents a block type.
const ElementTypeAnyFunc byte = 0x70
ElementTypeAnyFunc indicates the type of a table import.
const FunctionTypeID = byte(0x60)
FunctionTypeID indicates the start of a function type definition.
const Magic = uint32(0x6D736100)
Magic bytes at the beginning of every WASM file ("\0asm").
const Version = uint32(1)
Version defines the WASM version.
Source Files ¶
- Version
- v0.19.0-rc1
- Published
- Apr 1, 2020
- Platform
- js/wasm
- Last checked
- 1 hour ago –
Tools for package owners.