Struct xmas_elf::ElfFile
[−]
[src]
pub struct ElfFile<'a> { pub input: &'a [u8], pub header: Header<'a>, }
Fields
input: &'a [u8]
header: Header<'a>
Methods
impl<'a> ElfFile<'a>
[src]
fn new(input: &'a [u8]) -> Result<ElfFile<'a>, &'static str>
[src]
fn section_header(&self, index: u16) -> Result<SectionHeader<'a>, &'static str>
[src]
fn section_iter<'b>(&'b self) -> SectionIter<'b, 'a>
[src]
fn program_header(&self, index: u16) -> Result<ProgramHeader<'a>, &'static str>
[src]
fn program_iter<'b>(&'b self) -> ProgramIter<'b, 'a>
[src]
fn get_shstr(&self, index: u32) -> Result<&'a str, &'static str>
[src]
fn get_string(&self, index: u32) -> Result<&'a str, &'static str>
[src]
fn get_dyn_string(&self, index: u32) -> Result<&'a str, &'static str>
[src]
fn find_section_by_name(&self, name: &str) -> Option<SectionHeader<'a>>
[src]
Trait Implementations
impl<'a> Debug for ElfFile<'a>
[src]
impl<'a> Extensions<'a> for ElfFile<'a>
[src]
fn get_gnu_buildid(&self) -> Option<&'a [u8]>
[src]
Parse and return the value of the .note.gnu.build-id section, if it exists and is well-formed. Read more
fn get_gnu_debuglink(&self) -> Option<(&'a str, u32)>
[src]
Parse and return the value of the .gnu_debuglink section, if it exists and is well-formed. Read more