Memory

open class Memory(descriptor: MemoryDescriptor)(source)

The WebAssembly.Memory object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a WebAssembly.Instance.

MDN Reference

Constructors

Link copied to clipboard
constructor(descriptor: MemoryDescriptor)

Properties

Link copied to clipboard

The read-only buffer prototype property of the WebAssembly.Memory object returns the buffer contained in the memory. Depending on whether or not the memory was constructed with shared: true, the buffer is either an ArrayBuffer or a SharedArrayBuffer.

Functions

Link copied to clipboard

The grow() prototype method of the WebAssembly.Memory object increases the size of the memory instance by a specified number of WebAssembly pages.