pub type Mem = CopyingMemory;Expand description
Compatibility alias for the pre-trait name. Consumers can keep
writing Mem; new code should prefer CopyingMemory (when the
concrete impl is wanted) or be generic over M: Memory.
Aliased Type§
pub struct Mem {
pub flat_mem: Vec<u8>,
pub perms: Vec<u8>,
pub heap_base: u32,
pub heap_top: u32,
pub max_heap_pages: u32,
}Fields§
§flat_mem: Vec<u8>Contiguous byte buffer covering 0..flat_mem.len().
perms: Vec<u8>One permission byte per PAGE_SIZE-page in flat_mem.
perms.len() == flat_mem.len() / PAGE_SIZE (rounded up).
heap_base: u32Heap base address (for sbrk).
heap_top: u32Current heap top.
max_heap_pages: u32Maximum heap pages (sbrk refuses beyond this).