Skip to content

WasmLinearMemory

Defined in: packages/runtime/src/wasm/wasi-types.ts:372

Minimal structural type for WebAssembly.Memory.

Avoids requiring WebAssembly in the tsconfig lib — only the buffer field is needed by the WASI host.

https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory

readonly buffer: ArrayBuffer

Defined in: packages/runtime/src/wasm/wasi-types.ts:374

The underlying linear memory; may be detached and replaced by memory.grow().