Module stable

Source
👎Deprecated since 0.18.0: The api::stable module has been moved to stable (crate root).
Expand description

APIs to manage stable memory.

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

Structs§

BufferedStableReaderDeprecated
A reader to the stable memory which reads bytes a chunk at a time as each chunk is required.
BufferedStableWriterDeprecated
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.
CanisterStableMemoryDeprecated
A standard implementation of StableMemory.
StableIODeprecated
Performs generic IO (read, write, and seek) on stable memory.
StableReaderDeprecated
Keeps an offset and reads off stable memory consecutively.
StableWriterDeprecated
A writer to the stable memory.

Enums§

StableMemoryErrorDeprecated
A possible error value when dealing with stable memory.

Constants§

WASM_PAGE_SIZE_IN_BYTESDeprecated
WASM page size in bytes.

Traits§

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

Functions§

stable_bytesDeprecated
Returns a copy of the stable memory.
stable_growDeprecated
Attempts to grow the stable memory by new_pages (added pages).
stable_readDeprecated
Reads data from the stable memory location specified by an offset.
stable_sizeDeprecated
Gets current size of the stable memory (in WASM pages).
stable_writeDeprecated
Writes data to the stable memory location specified by an offset.