table.fill
Fill part of a table with a value.
Parameters
$label Optional
If there is no label then the default table is used. If used then this points to a (table...)
object.
Stack In
i32 |
The offset within the table to start filling in. |
funcref |
A reference to a function to fill the elements with. |
i32 |
The number of elements in the table to fill. |
Examples
(table 10 funcref)
(func $fillDefaultTable
i32.const 2
ref.null func
i32.const 4
table.fill
)
(table $testTable 6 funcref)
(func $fillTestTable
i32.const 0
ref.null func
i32.const 6
table.fill $testTable
)