Bulk Memory Operations
Bulk memory adds fast, in-engine operations for copying and filling regions of memory and tables.
memory.copy and memory.fill
Section titled “memory.copy and memory.fill”(module (memory (export "memory") 1) (func (export "copy") (param $dst i32) (param $src i32) (param $len i32) (memory.copy (local.get $dst) (local.get $src) (local.get $len))) (func (export "fill") (param $dst i32) (param $value i32) (param $len i32) (memory.fill (local.get $dst) (local.get $value) (local.get $len))))table.copy, table.fill
Section titled “table.copy, table.fill”(module (table (export "table") 10 funcref) (func (export "tfill") (param $idx i32) (param $len i32) (table.fill 0 (local.get $idx) (ref.null func) (local.get $len))))Instruction Reference
Section titled “Instruction Reference”- Memory Instructions —
memory.copy,memory.fill,memory.init,data.drop - Table Instructions —
table.copy,table.fill,table.init,elem.drop