pub struct ElfFile<'a> {
pub input: &'a [u8],
pub header: Header<'a>,
}
Fields§
§input: &'a [u8]
§header: Header<'a>
Implementations§
source§impl<'a> ElfFile<'a>
impl<'a> ElfFile<'a>
pub fn new(input: &'a [u8]) -> Result<ElfFile<'a>, &'static str>
pub fn section_header( &self, index: u16 ) -> Result<SectionHeader<'a>, &'static str>
pub fn section_iter(&self) -> impl Iterator<Item = SectionHeader<'a>> + '_
pub fn program_header( &self, index: u16 ) -> Result<ProgramHeader<'a>, &'static str>
pub fn program_iter(&self) -> impl Iterator<Item = ProgramHeader<'a>> + '_
pub fn get_shstr(&self, index: u32) -> Result<&'a str, &'static str>
pub fn get_string(&self, index: u32) -> Result<&'a str, &'static str>
pub fn get_dyn_string(&self, index: u32) -> Result<&'a str, &'static str>
pub fn find_section_by_name(&self, name: &str) -> Option<SectionHeader<'a>>
Trait Implementations§
source§impl<'a> Extensions<'a> for ElfFile<'a>
impl<'a> Extensions<'a> for ElfFile<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ElfFile<'a>
impl<'a> Send for ElfFile<'a>
impl<'a> Sync for ElfFile<'a>
impl<'a> Unpin for ElfFile<'a>
impl<'a> UnwindSafe for ElfFile<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more