e01.org

WebAssembly table instructions

This set of pages details the table instructions available in Wasm to create and manipulate tables.

This set of pages details the table instructions available in Wasm to create and manipulate [tables](/docs/WebAssembly/Reference/Definitions/table).

> [!NOTE]
> Equivalent functionality is available to JavaScript via the [`WebAssembly.Table`](/docs/WebAssembly/Reference/JavaScript_interface/Table) API.

- [`table.copy`](/docs/WebAssembly/Reference/Table/copy)
- : Copies references from one [`table`](/docs/WebAssembly/Reference/Definitions/table) location to another.
- [`table.fill`](/docs/WebAssembly/Reference/Table/fill)
- : Sets a range of table elements to the same value.
- [`table.get`](/docs/WebAssembly/Reference/Table/get)
- : Retrieves the reference stored at a particular table index.
- [`table.grow`](/docs/WebAssembly/Reference/Table/grow)
- : Increases the size of the table by a specified number of elements.
- [`table.init`](/docs/WebAssembly/Reference/Table/init)
- : Manually copies the references from a passive [`elem`](/docs/WebAssembly/Reference/Definitions/elem) definition into a `table`.
- [`table.set`](/docs/WebAssembly/Reference/Table/set)
- : Changes the value stored in a particular table element.
- [`table.size`](/docs/WebAssembly/Reference/Table/size)
- : Returns the current size of the table.

source: MDN Web Docs mirror · page

Cite this

"WebAssembly table instructions". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Table

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·