Function stable_bytes

Source
pub fn stable_bytes() -> Vec<u8> โ“˜
๐Ÿ‘ŽDeprecated since 0.18.0: The api::stable module has been moved to stable (crate root).
Expand description

Returns a copy of the stable memory.

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

ยงPanics

When the bytes of the stable memory cannot fit into a Vec which constrained by the usize.