import { WebAssembly } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.deno.shared_globals.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.
Constructors
new
Memory(descriptor: MemoryDescriptor)Creates a new Memory
object.