pub struct MachHeader64 {
pub magic: u32,
pub cputype: u32,
pub cpusubtype: u32,
pub filetype: u32,
pub ncmds: u32,
pub sizeofcmds: u32,
pub flags: u32,
pub reserved: u32,
}Expand description
Parsed 64-bit Mach-O header.
Field names mirror Apple’s mach_header_64 verbatim. The
struct is public so analysis crates can read its fields;
invariants (magic == MH_MAGIC_64, cputype recognised)
are enforced only at parse time.
Fields§
§magic: u32§cputype: u32§cpusubtype: u32§filetype: u32§ncmds: u32§sizeofcmds: u32§flags: u32§reserved: u32Trait Implementations§
Source§impl Clone for MachHeader64
impl Clone for MachHeader64
Source§fn clone(&self) -> MachHeader64
fn clone(&self) -> MachHeader64
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 moreSource§impl Debug for MachHeader64
impl Debug for MachHeader64
Source§impl PartialEq for MachHeader64
impl PartialEq for MachHeader64
Source§fn eq(&self, other: &MachHeader64) -> bool
fn eq(&self, other: &MachHeader64) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MachHeader64
impl StructuralPartialEq for MachHeader64
Auto Trait Implementations§
impl Freeze for MachHeader64
impl RefUnwindSafe for MachHeader64
impl Send for MachHeader64
impl Sync for MachHeader64
impl Unpin for MachHeader64
impl UnsafeUnpin for MachHeader64
impl UnwindSafe for MachHeader64
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