pub struct Elf<'a> { /* private fields */ }
Expand description
An ELF binary
Implementations§
source§impl Elf<'_>
impl Elf<'_>
sourcepub fn new<'a>(bytes: &'a [u8]) -> Result<Elf<'a>, ElfError>
pub fn new<'a>(bytes: &'a [u8]) -> Result<Elf<'a>, ElfError>
Create an Elf
from a stream of bytes
sourcepub fn sections(&self) -> EntryIter<'_, SectionHeader> ⓘ
pub fn sections(&self) -> EntryIter<'_, SectionHeader> ⓘ
Create a SectionIter
that iterates over this ELF’s section header.