pub struct MemoryMap { /* private fields */ }
Expand description
The memory map of a given guest program.
Implementations§
Source§impl MemoryMap
impl MemoryMap
Sourcepub fn max_heap_size(&self) -> u32
pub fn max_heap_size(&self) -> u32
The maximum size of the program’s heap.
Sourcepub fn ro_data_address(&self) -> u32
pub fn ro_data_address(&self) -> u32
The address at where the program’s read-only data starts inside of the VM.
Sourcepub fn ro_data_size(&self) -> u32
pub fn ro_data_size(&self) -> u32
The size of the program’s read-only data.
Sourcepub fn ro_data_range(&self) -> Range<u32>
pub fn ro_data_range(&self) -> Range<u32>
The range of addresses where the program’s read-only data is inside of the VM.
Sourcepub fn rw_data_address(&self) -> u32
pub fn rw_data_address(&self) -> u32
The address at where the program’s read-write data starts inside of the VM.
Sourcepub fn rw_data_size(&self) -> u32
pub fn rw_data_size(&self) -> u32
The size of the program’s read-write data.
Sourcepub fn rw_data_range(&self) -> Range<u32>
pub fn rw_data_range(&self) -> Range<u32>
The range of addresses where the program’s read-write data is inside of the VM.
Sourcepub fn stack_address_low(&self) -> u32
pub fn stack_address_low(&self) -> u32
The address at where the program’s stack starts inside of the VM.
Sourcepub fn stack_address_high(&self) -> u32
pub fn stack_address_high(&self) -> u32
The address at where the program’s stack ends inside of the VM.
Sourcepub fn stack_size(&self) -> u32
pub fn stack_size(&self) -> u32
The size of the program’s stack.
Sourcepub fn stack_range(&self) -> Range<u32>
pub fn stack_range(&self) -> Range<u32>
The range of addresses where the program’s stack is inside of the VM.
pub fn aux_data_address(&self) -> u32
pub fn aux_data_size(&self) -> u32
pub fn aux_data_range(&self) -> Range<u32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryMap
impl RefUnwindSafe for MemoryMap
impl Send for MemoryMap
impl Sync for MemoryMap
impl Unpin for MemoryMap
impl UnwindSafe for MemoryMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more