[−][src]Trait object::read::macho::MachHeader
A trait for generic access to MachHeader32
and MachHeader64
.
Associated Types
type Word: Into<u64>
[src]
type Endian: Endian
[src]
type Segment: Segment<Endian = Self::Endian, Section = Self::Section>
[src]
type Section: Section<Endian = Self::Endian>
[src]
type Nlist: Nlist<Endian = Self::Endian>
[src]
Required methods
pub fn is_type_64(&self) -> bool
[src]
Return true if this type is a 64-bit header.
This is a property of the type, not a value in the header data.
pub fn is_big_endian(&self) -> bool
[src]
Return true if the magic
field signifies big-endian.
pub fn is_little_endian(&self) -> bool
[src]
Return true if the magic
field signifies little-endian.
pub fn magic(&self) -> u32
[src]
pub fn cputype(&self, endian: Self::Endian) -> u32
[src]
pub fn cpusubtype(&self, endian: Self::Endian) -> u32
[src]
pub fn filetype(&self, endian: Self::Endian) -> u32
[src]
pub fn ncmds(&self, endian: Self::Endian) -> u32
[src]
pub fn sizeofcmds(&self, endian: Self::Endian) -> u32
[src]
pub fn flags(&self, endian: Self::Endian) -> u32
[src]
Provided methods
pub fn parse<'data>(data: Bytes<'data>) -> Result<&'data Self>
[src]
Read the file header.
Also checks that the magic field in the file header is a supported format.
pub fn is_supported(&self) -> bool
[src]
pub fn endian(&self) -> Result<Self::Endian>
[src]
pub fn load_commands<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<MachOLoadCommandIterator<'data, Self::Endian>>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<MachOLoadCommandIterator<'data, Self::Endian>>
pub fn uuid<'data>(
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<[u8; 16]>>
[src]
&self,
endian: Self::Endian,
data: Bytes<'data>
) -> Result<Option<[u8; 16]>>
Return the UUID from the LC_UUID
load command, if one is present.