Skip to main content

ic_memory_key

Macro ic_memory_key 

Source
macro_rules! ic_memory_key {
    ($stable_key:literal, $label:path, $id:expr) => { ... };
}
Expand description

Declare a stable-memory slot with an explicit ABI-stable key.

Use this for every Canic-managed memory. The stable key, not crate or Rust type identity, is the durable allocation identity.