[go: up one dir, main page]

Trait object::Object [] [src]

pub trait Object<'a>: Sized {
    type Error;
    fn parse(input: &'a [u8]) -> Result<Self, Self::Error>;
    fn get_section(&self, section_name: &str) -> Option<&[u8]>;
    fn is_little_endian(&self) -> bool;
}

An object file.

Associated Types

An associated error type for when parsing or some other operation fails.

Required Methods

Parse the raw object file data.

Get the contents of the section named section_name, if such a section exists.

Return true if the file is little endian, false if it is big endian.

Implementors