Expand description

APIs to manage stable memory.

You can check the Internet Computer Specification for a in-depth explanation of stable memory.

Structs

A reader to the stable memory which reads bytes a chunk at a time as each chunk is required.
A writer to the stable memory which first writes the bytes to an in memory buffer and flushes the buffer to stable memory each time it becomes full.
A standard implementation of StableMemory.
A reader to the stable memory.
A writer to the stable memory.

Enums

A possible error value when dealing with stable memory.

Traits

A trait defining the stable memory API which each canister running on the IC can make use of

Functions

Similar to stable_grow but with support for 64-bit addressed memory.
Similar to stable_read but with support for 64-bit addressed memory.
Similar to stable_size but with support for 64-bit addressed memory.
Similar to stable_write but with support for 64-bit addressed memory.
Returns a copy of the stable memory.
Attempts to grow the stable memory by new_pages (added pages).
Reads data from the stable memory location specified by an offset.
Gets current size of the stable memory (in WASM pages).
Writes data to the stable memory location specified by an offset.