wasm library

Classes

Exception
Represents a WebAssembly exception instance.
ExceptionOptions
Options used when creating a WebAssembly Exception.
ExportValue<T extends Object, R extends ExportValue<T, R>>
Marker type for export values.
ExternRef
External reference value.
Float32
32-bit floating-point value.
Float64
64-bit floating-point value.
FuncRef
Function reference value.
FunctionImportExportValue
Function import/export value wrapper.
Global<T extends Value<T, V>, V extends Object?>
Represents a WebAssembly global variable instance.
GlobalDescriptor<T extends Value<T, V>, V extends Object?>
Describes a WebAssembly global variable.
GlobalImportExportValue
Global import/export value wrapper.
ImportExportValue<T extends Object>
Base wrapper for module import/export references.
ImportValue<T extends Object>
Marker type for import values.
Instance
Minimal WebAssembly instance interface.
Int32
32-bit integer value.
Int64
64-bit integer value backed by BigInt (Node-aligned bigint semantics).
IntImportValue
Integer import value used by import object augmentation.
Memory
Minimal linear memory interface.
MemoryDescriptor
Describes limits and behavior of a WebAssembly linear memory.
MemoryImportExportValue
Memory import/export value wrapper.
Module
Minimal module interface.
ModuleExportDescriptor
Module export descriptor metadata.
ModuleImportDescriptor
Module import descriptor metadata.
Table<T extends Value<T, V>, V extends Object?>
Minimal table interface.
TableDescriptor<T extends Value<T, V>, V extends Object?>
Describes the limits and element kind of a WebAssembly table.
TableImportExportValue
Table import/export value wrapper.
Tag
Represents a WebAssembly exception tag.
TagDescriptor
Describes the payload signature of a WebAssembly exception tag.
TagImportExportValue
Tag import/export value wrapper.
Value<T extends Value<T, V>, V extends Object?>
Base wrapper for typed WebAssembly runtime values.
Vector128
128-bit vector value.
WasmComponent
WasmComponentAlias
WasmComponentAliasTarget
WasmComponentCanonicalDefinition
WasmComponentCanonicalOption
WasmComponentCanonicalResult
WasmComponentComponentType
WasmComponentCoreExternDescriptor
WasmComponentCoreInlineExport
WasmComponentCoreInstance
WasmComponentCoreInstantiationArgument
WasmComponentCoreSortIndex
WasmComponentCoreType
WasmComponentCoreTypeDeclaration
WasmComponentDefinedValueType
WasmComponentExport
WasmComponentExternDescriptor
WasmComponentFunctionType
WasmComponentImport
WasmComponentInlineExport
WasmComponentInstance
WasmComponentInstanceType
WasmComponentInstantiationArgument
WasmComponentLabeledValueType
WasmComponentResourceType
WasmComponentSection
WasmComponentSort
WasmComponentSortIndex
WasmComponentStart
WasmComponentTypeDeclaration
WasmComponentTypeDefinition
WasmComponentTypeExport
WasmComponentValidationError
WasmComponentValueData
WasmComponentValueDefinition
WasmComponentValueType
WasmComponentVariantCase
WasmFeatureSet
WebAssembly
Minimal WebAssembly facade interface.

Typedefs

Exports = Map<String, ExportValue<Object, ExportValue<Object, dynamic>>>
Export object map for an instantiated module.
Imports = Map<String, ModuleImports>
Full imports map (module name -> module imports).
ModuleImports = Map<String, ImportValue<Object>>
Module-local imports map (import name -> import value).
WasmFunction = Object? Function(List<Object?>)
The Dart calling convention for host functions passed to or received from WebAssembly: arguments are delivered as a List and the return value is nullable.

Exceptions / Errors

CompileError
Thrown when compilation fails.
LinkError
Thrown when linking fails.
RuntimeError
Thrown when execution fails at runtime.
WasmError
Base class for all WebAssembly-related errors.