ic_cdk::api::stable

Function stable_grow

Source
pub fn stable_grow(new_pages: u64) -> Result<u64, StableMemoryError>
Expand description

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

Note: Pages are 64KiB in WASM.