ic_cdk::api

Module 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§

  • 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.