👎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§
- Buffered
Stable Reader Deprecated - A reader to the stable memory which reads bytes a chunk at a time as each chunk is required.
- Buffered
Stable Writer Deprecated - 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.
- Canister
Stable Memory Deprecated - A standard implementation of
StableMemory. - StableIO
Deprecated - Performs generic IO (read, write, and seek) on stable memory.
- Stable
Reader Deprecated - Keeps an offset and reads off stable memory consecutively.
- Stable
Writer Deprecated - A writer to the stable memory.
Enums§
- Stable
Memory Error Deprecated - A possible error value when dealing with stable memory.
Constants§
- WASM_
PAGE_ SIZE_ IN_ BYTES Deprecated - WASM page size in bytes.
Traits§
- Stable
Memory Deprecated - A trait defining the stable memory API which each canister running on the IC can make use of
Functions§
- stable_
bytes Deprecated - Returns a copy of the stable memory.
- stable_
grow Deprecated - Attempts to grow the stable memory by
new_pages(added pages). - stable_
read Deprecated - Reads data from the stable memory location specified by an offset.
- stable_
size Deprecated - Gets current size of the stable memory (in WASM pages).
- stable_
write Deprecated - Writes data to the stable memory location specified by an offset.