RemoteInstance class final

A WasmInstance that lives in a worker.

Properties

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

Methods

exports() → Future<Map<String, String>>
The names and kinds of the exports.
invoke(String name, [List<Object?> arguments = const []]) → Future<Object?>
Calls the exported function name; the result follows the JavaScript convention (null, the single value, or a list for several results).
memoryGrow(String name, int deltaPages) → Future<int>
Grows the exported memory name by deltaPages pages.
memorySize(String name) → Future<int>
The current size of the exported memory name, in bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readGlobal(String name) → Future<Object?>
Reads the value of the exported global name.
readMemory(String name, int offset, int length) → Future<Uint8List>
Reads length bytes of the exported memory name.
toString() → String
A string representation of this object.
override
writeGlobal(String name, Object? value) → Future<void>
Writes the value of the exported global name.
writeMemory(String name, int offset, Uint8List bytes) → Future<void>
Writes bytes into the exported memory name at offset.

Operators

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