pub struct MapRequest {
pub name: String,
pub preferred_va: u64,
pub vmsize: u64,
pub fileoff: u64,
pub filesize: u64,
pub initprot: u32,
pub maxprot: u32,
pub svc_scan_ranges: Vec<(u64, u64)>,
}Expand description
Request to map one segment-like region from a Mach-O image.
Fields§
§name: StringSegment name.
preferred_va: u64Preferred guest VA (slide 0).
vmsize: u64Virtual size (vmsize).
fileoff: u64File offset of the first mapped byte (fileoff).
filesize: u64Bytes to load from the file (filesize).
initprot: u32Initial protection (initprot, Darwin bits).
maxprot: u32Maximum protection (maxprot, Darwin bits).
svc_scan_ranges: Vec<(u64, u64)>Relative (offset, len) ranges within mapped file content to scan for
residual Darwin svc (instruction sections only).
Empty → trap backend falls back to the whole filesize span (fixtures
without section flags, or unknown layout).
Implementations§
Source§impl MapRequest
impl MapRequest
Sourcepub fn should_skip(&self) -> bool
pub fn should_skip(&self) -> bool
True when this region should not be mapped (null-catch / empty).
Trait Implementations§
Source§impl Clone for MapRequest
impl Clone for MapRequest
Auto Trait Implementations§
impl Freeze for MapRequest
impl RefUnwindSafe for MapRequest
impl Send for MapRequest
impl Sync for MapRequest
impl Unpin for MapRequest
impl UnsafeUnpin for MapRequest
impl UnwindSafe for MapRequest
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