↑ arvau

MDN / WebAssembly table instructions

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

Equivalent functionality is available to JavaScript via the WebAssembly.Table API.

  • table.copy

    • : Copies references from one table location to another.

    table.fill

    • : Sets a range of table elements to the same value.

    table.get

    • : Retrieves the reference stored at a particular table index.

    table.grow

    • : Increases the size of the table by a specified number of elements.

    table.init

    • : Manually copies the references from a passive elem definition into a table.

    table.set

    • : Changes the value stored in a particular table element.

    table.size

    • : Returns the current size of the table.