Skip to main content
Module

x/netzo/deno.d.ts>WebAssembly.Memory

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
class WebAssembly.Memory
import { WebAssembly } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { Memory } = WebAssembly;

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

A memory created by JavaScript or in WebAssembly code will be accessible and mutable from both JavaScript and WebAssembly.

MDN

Constructors

new
Memory(descriptor: MemoryDescriptor)

Creates a new Memory object.

Properties

readonly
buffer: ArrayBuffer | SharedArrayBuffer

An accessor property that returns the buffer contained in the memory.

Methods

grow(delta: number): number

Increases the size of the memory instance by a specified number of WebAssembly pages (each one is 64KB in size).