WebAssembly Memory

Marco Kuoni
WebAssembly
Published in
10 min readSep 6, 2023

--

An ArrayBuffer (or SharedArrayBuffer) is associated with a WebAssembly module, which serves as WebAssembly memory. The memory instance is either created by the module itself or provided by the host system. These instances are imported or exported by the module just like functions. Each instance consists of a linear memory divided into 64 kilobyte-sized pages.

Currently, a WebAssembly module is limited to one memory instance only. It is expected that this will be adjusted in the near future.

Exporting Memory

--

--

Marco Kuoni
WebAssembly

CTO lemonbrain, BSc electrical engineering, cand. BSc computer science