WasmLinker class final
Defines a module's imports and instantiates it.
Constructors
- WasmLinker(WasmEngine engine)
Properties
- engine → WasmEngine
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether the native object has already been released.
no setterinherited
-
pointer
→ Pointer<
wasmtime_linker_t> -
The native pointer, for use by the layers above.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkNotDisposed(
) → void -
Throws a StateError if this object has been disposed.
inherited
-
defineFunction(
String module, String name, WasmFuncType signature, WasmHostFunction function) → void -
Defines
module.nameas a host function. -
defineGlobal(
String module, String name, WasmStore store, WasmGlobal global) → void -
Defines
module.nameas an existing global. -
defineInstance(
String name, WasmInstance instance) → void -
Defines
nameas the exports ofinstance. -
defineMemory(
String module, String name, WasmStore store, WasmMemory memory) → void -
Defines
module.nameas an existing memory. -
defineModule(
String name, WasmStore store, WasmModule module) → void -
Defines
nameas the exports ofmodule. -
defineTable(
String module, String name, WasmStore store, WasmTable table) → void -
Defines
module.nameas an existing table. -
defineUnknownImportsAsDefaultValues(
WasmStore store, WasmModule module) → void - Satisfies every import that is not defined yet with a zero value.
-
defineUnknownImportsAsTraps(
WasmModule module) → void - Satisfies every import that is not defined yet with a function that traps.
-
disown(
) → void -
Gives up ownership without releasing the object.
inherited
-
dispose(
) → void - Releases the native object. Idempotent.
-
instantiate(
WasmStore store, WasmModule module) → WasmInstance -
Instantiates
moduleinstore. -
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