Struct object::MachOFile
[−]
[src]
pub struct MachOFile<'data> { /* fields omitted */ }
A Mach-O object file.
Methods
impl<'data> MachOFile<'data>
[src]
fn macho(&self) -> &MachO<'data>
[src]
Get the Mach-O headers of the file.
fn parse(data: &'data [u8]) -> Result<Self, &'static str>
[src]
Parse the raw Mach-O file data.
Trait Implementations
impl<'data> Debug for MachOFile<'data>
[src]
impl<'data, 'file> Object<'data, 'file> for MachOFile<'data> where
'data: 'file,
[src]
'data: 'file,
type Segment = MachOSegment<'data, 'file>
A segment in the object file.
type SegmentIterator = MachOSegmentIterator<'data, 'file>
An iterator over the segments in the object file.
type Section = MachOSection<'data>
A section in the object file.
type SectionIterator = MachOSectionIterator<'data, 'file>
An iterator over the sections in the object file.
type SymbolIterator = MachOSymbolIterator<'data>
An iterator over the symbols in the object file.
fn machine(&self) -> Machine
[src]
Get the machine type of the file.
fn segments(&'file self) -> MachOSegmentIterator<'data, 'file>
[src]
Get an iterator over the segments in the file.
fn section_data_by_name(&self, section_name: &str) -> Option<&'data [u8]>
[src]
Get the contents of the section named section_name
, if such a section exists. Read more
fn sections(&'file self) -> MachOSectionIterator<'data, 'file>
[src]
Get an iterator over the sections in the file.
fn symbols(&'file self) -> MachOSymbolIterator<'data>
[src]
Get an iterator over the debugging symbols in the file.
fn dynamic_symbols(&'file self) -> MachOSymbolIterator<'data>
[src]
Get an iterator over the dynamic linking symbols in the file.
fn symbol_map(&self) -> SymbolMap<'data>
[src]
Construct a map from addresses to symbols.
fn is_little_endian(&self) -> bool
[src]
Return true if the file is little endian, false if it is big endian.