WasmModule class

A compiled module that can be instantiated.

Constructors

WasmModule(Uint8List data)
Compile a module.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

builder() WasmInstanceBuilder
Returns a WasmInstanceBuilder that is used to add all the imports that the module needs before instantiating it.
createMemory(int pages, [int? maxPages]) WasmMemory
Create a new memory with the given number of initial pages, and optional maximum number of pages.
describe() String
Returns a description of all of the module's imports and exports, for debugging.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited