WasmTable class abstract
A Table that can be used to store object references and functions.
- Inheritance
-
- Object
- WasmExternal
- WasmTable
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → WasmExternalKind
-
The kind of this WasmExternal.
no setterinherited
- length → int
-
The amount of available positions in the table.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TableTy?
-
Returns the type of the table.
no setter
Methods
-
get(
int index) → Object? -
Returns the value at
index
. -
grow(
int delta, WasmValueRef fillValue) → int -
Grows the table by
delta
elements and populates the new indexes withfillValue
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
int index, WasmValueRef value) → void -
Sets the value at
index
tovalue
. -
toString(
) → String -
A string representation of this object.
override
-
when<
T> ({required T memory(WasmMemory memory), required T table(WasmTable table), required T global(WasmGlobal global), required T function(WasmFunction function)}) → T -
Executes the given function depending on the type of this WasmExternal.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → Object? -
Returns the value at
index
. -
operator []=(
int index, WasmValueRef value) → void -
Sets the value at
index
tovalue
.