pub struct MachOFile<'data> { /* private fields */ }
Expand description
A Mach-O object file.
Implementations§
Trait Implementations§
source§impl<'data, 'file> Object<'data, 'file> for MachOFile<'data>where
'data: 'file,
impl<'data, 'file> Object<'data, 'file> for MachOFile<'data>where
'data: 'file,
§type Segment = MachOSegment<'data, 'file>
type Segment = MachOSegment<'data, 'file>
A segment in the object file.
§type SegmentIterator = MachOSegmentIterator<'data, 'file>
type SegmentIterator = MachOSegmentIterator<'data, 'file>
An iterator over the segments in the object file.
§type Section = MachOSection<'data, 'file>
type Section = MachOSection<'data, 'file>
A section in the object file.
§type SectionIterator = MachOSectionIterator<'data, 'file>
type SectionIterator = MachOSectionIterator<'data, 'file>
An iterator over the sections in the object file.
§type SymbolIterator = MachOSymbolIterator<'data>
type SymbolIterator = MachOSymbolIterator<'data>
An iterator over the symbols in the object file.
source§fn segments(&'file self) -> MachOSegmentIterator<'data, 'file> ⓘ
fn segments(&'file self) -> MachOSegmentIterator<'data, 'file> ⓘ
Get an iterator over the segments in the file.
source§fn section_by_name(
&'file self,
section_name: &str
) -> Option<MachOSection<'data, 'file>>
fn section_by_name(
&'file self,
section_name: &str
) -> Option<MachOSection<'data, 'file>>
Get the section named
section_name
, if such a section exists. Read moresource§fn sections(&'file self) -> MachOSectionIterator<'data, 'file> ⓘ
fn sections(&'file self) -> MachOSectionIterator<'data, 'file> ⓘ
Get an iterator over the sections in the file.
source§fn symbol_by_index(&self, index: u64) -> Option<Symbol<'data>>
fn symbol_by_index(&self, index: u64) -> Option<Symbol<'data>>
Get the debugging symbol at the given index. Read more
source§fn symbols(&'file self) -> MachOSymbolIterator<'data> ⓘ
fn symbols(&'file self) -> MachOSymbolIterator<'data> ⓘ
Get an iterator over the debugging symbols in the file. Read more
source§fn dynamic_symbols(&'file self) -> MachOSymbolIterator<'data> ⓘ
fn dynamic_symbols(&'file self) -> MachOSymbolIterator<'data> ⓘ
Get an iterator over the dynamic linking symbols in the file. Read more
source§fn symbol_map(&self) -> SymbolMap<'data>
fn symbol_map(&self) -> SymbolMap<'data>
Construct a map from addresses to symbols.
source§fn is_little_endian(&self) -> bool
fn is_little_endian(&self) -> bool
Return true if the file is little endian, false if it is big endian.
source§fn has_debug_symbols(&self) -> bool
fn has_debug_symbols(&self) -> bool
Return true if the file contains debug information sections, false if not.