package
1.9.0
Repository: https://github.com/tetratelabs/wazero.git
Documentation: pkg.go.dev

# Functions

DecodeExternref decodes the input as a ValueTypeExternref.
DecodeF32 decodes the input as a ValueTypeF32.
DecodeF64 decodes the input as a ValueTypeF64.
DecodeI32 decodes the input as a ValueTypeI32.
DecodeU32 decodes the input as a ValueTypeI32.
EncodeExternref encodes the input as a ValueTypeExternref.
EncodeF32 encodes the input as a ValueTypeF32.
EncodeF64 encodes the input as a ValueTypeF64.
EncodeI32 encodes the input as a ValueTypeI32.
EncodeI64 encodes the input as a ValueTypeI64.
EncodeU32 encodes the input as a ValueTypeI32.
ExternTypeName returns the name of the WebAssembly 1.0 (20191205) Text Format field of the given type.
ValueTypeName returns the type name of the given ValueType as a string.

# Constants

CoreFeatureBulkMemoryOperations adds instructions modify ranges of memory or table entries ("bulk-memory-operations").
CoreFeatureMultiValue enables multiple values ("multi-value").
CoreFeatureMutableGlobal allows globals to be mutable.
CoreFeatureNonTrappingFloatToIntConversion enables non-trapping float-to-int conversions ("nontrapping-float-to-int-conversion").
CoreFeatureReferenceTypes enables various instructions and features related to table and new reference types.
CoreFeatureSignExtensionOps enables sign extension instructions ("sign-extension-ops").
CoreFeatureSIMD enables the vector value type and vector instructions (aka SIMD).
CoreFeaturesV1 are features included in the WebAssembly Core Specification 1.0.
CoreFeaturesV2 are features included in the WebAssembly Core Specification 2.0 (20220419).
ExternTypeFuncName is the name of the WebAssembly 1.0 (20191205) Text Format field for ExternTypeFunc.
ExternTypeGlobalName is the name of the WebAssembly 1.0 (20191205) Text Format field for ExternTypeGlobal.
ExternTypeMemoryName is the name of the WebAssembly 1.0 (20191205) Text Format field for ExternTypeMemory.
ExternTypeTableName is the name of the WebAssembly 1.0 (20191205) Text Format field for ExternTypeTable.
ValueTypeExternref is a externref type.
ValueTypeF32 is a 32-bit floating point number.
ValueTypeF64 is a 64-bit floating point number.
ValueTypeI32 is a 32-bit integer.
ValueTypeI64 is a 64-bit integer.

# Interfaces

Closer closes a resource.
CustomSection contains the name and raw data of a custom section.
ExportDefinition is a WebAssembly type exported in a module (wazero.CompiledModule).
Function is a WebAssembly function exported from an instantiated module (wazero.Runtime InstantiateModule).
FunctionDefinition is a WebAssembly function exported in a module (wazero.CompiledModule).
Global is a WebAssembly 1.0 (20191205) global exported from an instantiated module (wazero.Runtime InstantiateModule).
GoFunction is an optimized form of GoModuleFunction which doesn't require the Module parameter.
GoModuleFunction is a Function implemented in Go instead of a wasm binary.
Memory allows restricted access to a module's memory.
MemoryDefinition is a WebAssembly memory exported in a module (wazero.CompiledModule).
Module is a sandboxed, ready to execute Wasm module.
MutableGlobal is a Global whose value can be updated at runtime (variable).

# Type aliases

CoreFeatures is a bit flag of WebAssembly Core specification features.
ExternType classifies imports and exports with their respective types.
GoFunc is a convenience for defining an inlined function.
GoModuleFunc is a convenience for defining an inlined function.
ValueType describes a parameter or result type mapped to a WebAssembly function signature.