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.

Functions

Link copied to clipboard
fun grow(delta: Int): Int

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