Skip to main content

stable_grow

Function stable_grow 

Source
pub fn stable_grow(new_pages: u64) -> u64
Expand description

Attempts to grow the stable memory by new_pages many pages containing zeroes.

One WebAssembly page is 64KiB.

If successful, returns the previous size of the memory (in pages). Otherwise, returns u64::MAX.