Function ic_cdk::api::stable::stable_grow [−][src]
pub fn stable_grow(new_pages: u32) -> Result<u32, StableMemoryError>
Expand description
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.
Notes
Pages are 64KiB in WASM.