pub struct ImagePlan {
pub guest_page_size: u32,
pub preferred_base: u64,
pub entry: Option<u64>,
pub mappings: Vec<PlannedMapping>,
pub fully_guest_aligned: bool,
}Expand description
Planned virtual memory layout for a loaded image (pre-mmap, slide = 0).
Fields§
§guest_page_size: u32Guest page size used for alignment checks (bytes).
preferred_base: u64Preferred base (lowest non-zero segment vmaddr, else 0).
entry: Option<u64>Entry virtual address if known.
mappings: Vec<PlannedMapping>Planned segment mappings.
fully_guest_aligned: boolTrue if every segment is guest-page aligned in addr and size.
Implementations§
Source§impl ImagePlan
impl ImagePlan
Sourcepub fn from_image(image: &MachOImage, guest: GuestPageSize) -> Self
pub fn from_image(image: &MachOImage, guest: GuestPageSize) -> Self
Builds a plan from a parsed image.
Sourcepub fn segment_count(&self) -> usize
pub fn segment_count(&self) -> usize
Number of segments in the plan.
Trait Implementations§
impl Eq for ImagePlan
impl StructuralPartialEq for ImagePlan
Auto Trait Implementations§
impl Freeze for ImagePlan
impl RefUnwindSafe for ImagePlan
impl Send for ImagePlan
impl Sync for ImagePlan
impl Unpin for ImagePlan
impl UnsafeUnpin for ImagePlan
impl UnwindSafe for ImagePlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.