Class Memory
A block of memory.
class Memory
: wasmer .Handle!(wasmer.bindings.wasm_memory_t)
;
Constructors
| Name | Description |
|---|---|
this
(store, limits)
|
Fields
| Name | Type | Description |
|---|---|---|
limits
|
const(wasmer |
Properties
| Name | Type | Description |
|---|---|---|
data[get]
|
ubyte[] | A slice of all the data in this block of memory. |
length[get]
|
ulong | The current length in bytes of this block of memory. |
pageLength[get]
|
uint | The current length in pages of this block of memory. One page of memory is 64 kB. |
ptr[get]
|
void* | |
valid[get]
|
bool | Whether this managed handle to a wasm_memory_t is valid.
|
Methods
| Name | Description |
|---|---|
grow
(deltaPages)
|
Grows this block of memory by the given amount of pages. |