pub struct ProgramData {
pub ro_data: ArcBytes,
pub rw_data: ArcBytes,
/* private fields */
}
Expand description
Static data associated with the program.
Includes memory map and RO/RW data arrays.
Fields§
§ro_data: ArcBytes
§rw_data: ArcBytes
Implementations§
Source§impl ProgramData
impl ProgramData
pub fn new(memory_map: &MemoryMap, ro_data: ArcBytes, rw_data: ArcBytes) -> Self
Sourcepub fn classify_address(&self, address: u64) -> Option<AddressKind>
pub fn classify_address(&self, address: u64) -> Option<AddressKind>
Returns the identifier of an address range the address
belongs to.
pub fn address_range(&self, kind: AddressKind) -> &Range<u64>
Sourcepub fn stack_range(&self) -> &Range<u64>
pub fn stack_range(&self) -> &Range<u64>
Stack address range.
Sourcepub fn heap_range(&self) -> &Range<u64>
pub fn heap_range(&self) -> &Range<u64>
Heap address range.
Sourcepub fn ro_data_range(&self) -> &Range<u64>
pub fn ro_data_range(&self) -> &Range<u64>
Read-only data address range.
Sourcepub fn rw_data_range(&self) -> &Range<u64>
pub fn rw_data_range(&self) -> &Range<u64>
Read/write data address range.
Auto Trait Implementations§
impl Freeze for ProgramData
impl !RefUnwindSafe for ProgramData
impl Send for ProgramData
impl Sync for ProgramData
impl Unpin for ProgramData
impl !UnwindSafe for ProgramData
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