WasmTable Class
A table (a table address).
public abstract class WasmTable : WasmExtern- Inheritance
WasmExternWasmTable
Properties
| Name | Description |
|---|---|
| Kind | Gets the kind of the value. |
| Size | Gets the number of elements. |
| Type | Gets the type of the table. |
Kind
WasmObjects.csSize
Type
Methods
| Name | Description |
|---|---|
| Get(ulong) | Reads an element (table_read). |
| Grow(ulong, WasmValue) | Grows the table (table_grow) and returns its previous size. |
| Set(ulong, WasmValue) | Writes an element (table_write). |
Get(ulong)
Reads an element (table_read).
Grow(ulong, WasmValue)
Set(ulong, WasmValue)
Writes an element (table_write).
Parameters
Exceptions
WasmAllocationException- The index is out of bounds.
WasmTypeMismatchException- The value does not match the type of the elements.