ic_cdk::api::stable
pub fn stable_bytes() -> Vec<u8>
Returns a copy of the stable memory. This will map the whole memory (even if not all of it has been written to).