Module class abstract
Base class to interact with the WebAssembly.
Currently, only emscripten compiled WebAssembly is supported. Two modes are supported, with js and standalone, the respective concrete implementation are EmscriptenModule and StandaloneWasmModule.
To support additional mechanisms/frameworks/compilers, create a subclass of Module.
- Implementers
- Annotations
Constructors
Properties
-
exports
→ List<
WasmSymbol> -
A list containing everything exported by the underlying
WebAssembly instance.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- heap → ByteBuffer
-
Provides access to the WebAssemblys memory buffer.
no setter
- indirectFunctionTable → WasmTable?
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
free(
int pointer) → void - Provides access to the free function in WebAssembly.
-
lookup<
T extends NativeType> (String name, Memory memory) → Pointer< T> - Looks up a symbol in the DynamicLibrary and returns its address in memory.
-
lookupFunction<
T extends Function, F extends Function> (String name, Memory memory) → F - General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
-
malloc(
int size) → int - Provides access to the malloc function in WebAssembly.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
providesSymbol(
String symbolName) → bool - Checks whether this dynamic library provides a symbol with the given name.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited