Struct object::File
[−]
[src]
pub struct File<'a> { /* fields omitted */ }
An object file.
Trait Implementations
impl<'a> Debug for File<'a>
[src]
impl<'a> Object<'a> for File<'a>
[src]
type Segment = Segment<'a>
A segment in the object file.
type SegmentIterator = SegmentIterator<'a>
An iterator over the segments in the object file.
type Section = Section<'a>
A section in the object file.
type SectionIterator = SectionIterator<'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) -> SegmentIterator<'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) -> SectionIterator<'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.