WasmMemory class

Memory of a WasmInstance.

Access via WasmInstance.memory or create via WasmModule.createMemory.

Properties

hashCode int
The hash code for this object.
no setterinherited
lengthInBytes int
The length of the memory in bytes.
no setter
lengthInPages int
The length of the memory in pages.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
view Uint8List
A view into the memory.
no setter

Methods

grow(int deltaPages) → void
Grow the memory by deltaPages and invalidates any existing views into the memory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) int
The byte at the given index.
operator []=(int index, int value) → void
Sets the byte at the given index to value.

Constants

kPageSizeInBytes → const int
The WASM spec defines the page size as 64KiB.