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,
}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).
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
Source§fn clone(&self) -> MapRequest
fn clone(&self) -> MapRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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