pub struct MappedRegion {
pub name: String,
pub guest_addr: u64,
pub prot: u32,
pub file_bytes: u64,
pub vmsize: u64,
pub svc_scan_ranges: Vec<(u64, u64)>,
/* private fields */
}Expand description
One mapped guest region (host-owned).
Fields§
§name: StringSegment / region name (for diagnostics).
guest_addr: u64Guest virtual address (preferred + slide).
prot: u32Final protection bits (Darwin VM_PROT_*).
file_bytes: u64File bytes copied into the mapping (0 for pure BSS / anonymous).
vmsize: u64Virtual size requested by the image (may be smaller than host map).
svc_scan_ranges: Vec<(u64, u64)>Relative (offset, len) within Self::file_bytes for residual svc
scan (instruction sections). Empty → scan whole file_bytes.
Implementations§
Source§impl MappedRegion
impl MappedRegion
Sourcepub fn host_bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn host_bytes_mut(&mut self) -> &mut [u8] ⓘ
Host base as a mutable byte slice covering the whole mapping.
Sourcepub fn host_bytes(&self) -> &[u8] ⓘ
pub fn host_bytes(&self) -> &[u8] ⓘ
Host base as an immutable byte slice.
Trait Implementations§
Source§impl Debug for MappedRegion
impl Debug for MappedRegion
Source§impl Drop for MappedRegion
impl Drop for MappedRegion
impl Send for MappedRegion
Auto Trait Implementations§
impl !Sync for MappedRegion
impl Freeze for MappedRegion
impl RefUnwindSafe for MappedRegion
impl Unpin for MappedRegion
impl UnsafeUnpin for MappedRegion
impl UnwindSafe for MappedRegion
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