Module ic_cdk::api::stable

source ·
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.
  • Performs generic IO (read, write, and seek) on stable memory.
  • Keeps an offset and reads off stable memory consecutively.
  • A writer to the stable memory.

Enums§

Constants§

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.