pub struct ProgramHeader<'a> { /* private fields */ }
Expand description
An Elf Program Header Primary examples are PT_LOAD and PT_DYNAMIC
Implementations§
Source§impl ProgramHeader<'_>
impl ProgramHeader<'_>
Sourcepub fn header_type(&self) -> Word
pub fn header_type(&self) -> Word
Access the program headers type
Sourcepub fn virtual_addr(&self) -> usize
pub fn virtual_addr(&self) -> usize
Access the program headers virtual address
Sourcepub fn memory_size(&self) -> usize
pub fn memory_size(&self) -> usize
Total size in memory
Sourcepub fn program_addr(&self) -> usize
pub fn program_addr(&self) -> usize
Program headers absolute address
Auto Trait Implementations§
impl<'a> Freeze for ProgramHeader<'a>
impl<'a> RefUnwindSafe for ProgramHeader<'a>
impl<'a> Send for ProgramHeader<'a>
impl<'a> Sync for ProgramHeader<'a>
impl<'a> Unpin for ProgramHeader<'a>
impl<'a> UnwindSafe for ProgramHeader<'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