WasmMemory class final
A WebAssembly linear memory.
Constructors
- WasmMemory.create(WasmStore store, {required int initial, int? maximum})
-
Creates a new memory in
store.factory
Properties
- buffer → Uint8List
-
The memory contents, as a view onto the native memory.
no setter
- handle → MemoryHandle
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthInBytes → int
-
The size of the memory in bytes.
no setter
- lengthInPages → int
-
The size of the memory in 64 KiB pages.
no setter
- pageSize → int
-
The size of one page in bytes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → WasmStore
-
final
- type → WasmMemoryExternType
-
The declared limits of the memory.
no setter
Methods
-
grow(
int deltaPages) → int -
Grows the memory by
deltaPagespages, returning the previous size in pages. Throws a WasmtimeException when the memory cannot grow. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited