pub struct MachOSummary {Show 16 fields
pub path: String,
pub fat: bool,
pub file_slice_offset: u64,
pub cpu: String,
pub file_type: String,
pub file_type_raw: u32,
pub flags: u32,
pub ncmds: u32,
pub sizeofcmds: u32,
pub entry: Option<u64>,
pub old_style_entry: bool,
pub uuid: Option<String>,
pub minos: Option<String>,
pub platform: Option<String>,
pub is_64: bool,
pub little_endian: bool,
}Expand description
High-level header summary used by kh inspect.
Fields§
§path: StringPath that was opened (or synthetic label).
fat: boolTrue when the on-disk container was a fat binary.
file_slice_offset: u64Byte offset of the arm64 thin Mach-O within the on-disk container.
Zero for thin files. Segment fileoff values are relative to the thin
header; map requests add this offset when reading the container path.
cpu: StringArchitecture name (e.g. arm64).
file_type: StringFile type string (e.g. EXECUTE).
file_type_raw: u32Raw filetype constant.
flags: u32Header flags.
ncmds: u32Number of load commands.
sizeofcmds: u32Size of all load commands in bytes.
entry: Option<u64>Entry virtual address if known (0 means unknown / not present).
old_style_entry: boolTrue when entry came from LC_UNIXTHREAD rather than LC_MAIN.
uuid: Option<String>UUID if present (LC_UUID).
minos: Option<String>Minimum OS version from LC_BUILD_VERSION / LC_VERSION_MIN_* if any.
platform: Option<String>Platform from LC_BUILD_VERSION if any.
is_64: boolWhether this is a 64-bit Mach-O.
little_endian: boolLittle-endian image.
Trait Implementations§
Source§impl Clone for MachOSummary
impl Clone for MachOSummary
Source§fn clone(&self) -> MachOSummary
fn clone(&self) -> MachOSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MachOSummary
impl Debug for MachOSummary
impl Eq for MachOSummary
Source§impl PartialEq for MachOSummary
impl PartialEq for MachOSummary
impl StructuralPartialEq for MachOSummary
Auto Trait Implementations§
impl Freeze for MachOSummary
impl RefUnwindSafe for MachOSummary
impl Send for MachOSummary
impl Sync for MachOSummary
impl Unpin for MachOSummary
impl UnsafeUnpin for MachOSummary
impl UnwindSafe for MachOSummary
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
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
key and return true if they are equal.