Struct object::File
[−]
[src]
pub struct File<'a> { /* fields omitted */ }
An object file.
Methods
impl<'a> File<'a>
[src]
fn parse(data: &'a [u8]) -> Result<Self, &'static str>
[src]
Parse the raw object file data.
fn get_section(&self, section_name: &str) -> Option<&'a [u8]>
[src]
Get the contents of the section named section_name
, if such
a section exists.
fn get_symbols(&self) -> Vec<Symbol<'a>>
[src]
Get a Vec
of the symbols defined in the file.
fn is_little_endian(&self) -> bool
[src]
Return true if the file is little endian, false if it is big endian.