Memory

package js.lib.webassembly

Available on js

A new WebAssembly Memory object which is a resizable ArrayBuffer that holds the raw bytes of memory accessed by a WebAssembly WebAssembly Instance.

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

Documentation Memory by Mozilla Contributors, licensed under CC-BY-SA 2.5.

Constructor

new(memoryDescriptor:MemoryDescriptor)

Variables

finalbuffer:ArrayBuffer

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

Methods

grow(number:Int):Int

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

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/webassembly/Memory.html