WebAssembly.MemoryDescriptor

interface

interface WebAssembly.MemoryDescriptor

The MemoryDescriptor describes the options you can pass to new WebAssembly.Memory().

Properties

initial

initial: number

The initial size of the memory, in units of WebAssembly pages (64KB each).

maximum

maximum?: number

The maximum size the memory is allowed to grow to, in units of WebAssembly pages.

shared

shared?: boolean

Whether the memory is shared between agents (backed by a SharedArrayBuffer). Defaults to false.