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
namebydeltaPagespages. -
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
lengthbytes of the exported memoryname. -
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
bytesinto the exported memorynameatoffset.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited