Trait object::Object
[−]
[src]
pub trait Object { fn open<P>(path: P) -> Self where P: AsRef<Path>; fn get_section(&self, section_name: &str) -> Option<&[u8]>; fn is_little_endian(&self) -> bool; }
Required Methods
fn open<P>(path: P) -> Self where P: AsRef<Path>
Open and parse the object file at the given path.
fn get_section(&self, section_name: &str) -> Option<&[u8]>
Get the contents of the section named section_name
, if such
a section exists.
fn is_little_endian(&self) -> bool
Return true if the file is little endian, false if it is big endian.
Implementors
impl Object for Elf