Struct object::MachOFile
[−]
[src]
pub struct MachOFile<'a> { /* fields omitted */ }A Mach-O object file.
Methods
impl<'a> MachOFile<'a>[src]
Trait Implementations
impl<'a> Debug for MachOFile<'a>[src]
impl<'a> Object<'a> for MachOFile<'a>[src]
type Segment = MachOSegment<'a>
A segment in the object file.
type SegmentIterator = MachOSegmentIterator<'a>
An iterator over the segments in the object file.
type Section = MachOSection<'a>
A section in the object file.
type SectionIterator = MachOSectionIterator<'a>
An iterator over the sections in the object file.
fn parse(data: &'a [u8]) -> Result<Self, &'static str>[src]
Parse the raw object file data.
fn machine(&self) -> Machine[src]
Get the machine type of the file.
fn segments(&'a self) -> MachOSegmentIterator<'a>[src]
Get an iterator over the segments in the file.
fn section_data_by_name(&self, section_name: &str) -> Option<&'a [u8]>[src]
Get the contents of the section named section_name, if such a section exists. Read more
fn sections(&'a self) -> MachOSectionIterator<'a>[src]
Get an iterator over the sections in the file.
fn symbols(&self) -> Vec<Symbol<'a>>[src]
Get a Vec of the symbols defined in the file. The symbols are unsorted and have the same order as the symbols in the file. Read more
fn is_little_endian(&self) -> bool[src]
Return true if the file is little endian, false if it is big endian.