pub struct ELF<T>where
T: Peeker,{ /* private fields */ }
Expand description
Generic ELF representation.
Implementations§
source§impl<T> ELF<T>where
T: Peeker,
impl<T> ELF<T>where T: Peeker,
sourcepub fn from_peeker(peeker: T) -> Result<ELF<T>, Option<T::Error>>
pub fn from_peeker(peeker: T) -> Result<ELF<T>, Option<T::Error>>
Create object from bytes.
pub fn peeker(&self) -> &T
pub fn bit(&self) -> Bit
pub fn endian(&self) -> Endian
pub fn type_(&self) -> EType
pub fn machine(&self) -> EMachine
pub fn phentsize(&self) -> usize
pub fn phnum(&self) -> usize
pub fn phoff(&self) -> usize
pub fn shstrndx(&self) -> usize
sourcepub fn phdrs(&self) -> PhdrIterator<'_, T> ⓘ
pub fn phdrs(&self) -> PhdrIterator<'_, T> ⓘ
Get iterator that iterates over program headers in this binary.
sourcepub fn shdrs(&self) -> ShdrIterator<'_, T> ⓘ
pub fn shdrs(&self) -> ShdrIterator<'_, T> ⓘ
Get iterator that iterates over section headers in this binary.
Auto Trait Implementations§
impl<T> RefUnwindSafe for ELF<T>where T: RefUnwindSafe,
impl<T> Send for ELF<T>where T: Send,
impl<T> Sync for ELF<T>where T: Sync,
impl<T> Unpin for ELF<T>where T: Unpin,
impl<T> UnwindSafe for ELF<T>where T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more