Module ic_cdk::api::stable[][src]

Structs

StableMemoryError
StableReader

A reader to the stable memory. Keeps an offset and reads off stable memory consecutively.

StableWriter

A writer to the stable memory. Will attempt to grow the memory as it writes, and keep offsets and total capacity.

Functions

stable_bytes

Returns a copy of the stable memory. This will map the whole memory (even if not all of it has been written to).

stable_grow

Attempt to grow the stable memory by new_pages (added pages). Returns an error if it wasn’t possible. Otherwise, returns the previous size that was reserved.

stable_read
stable_size
stable_write