Struct mer::program::ProgramHeader[][src]

#[repr(C)]pub struct ProgramHeader {
    pub segment_type: u32,
    pub flags: u32,
    pub offset: u64,
    pub virtual_address: u64,
    pub physical_address: u64,
    pub file_size: u64,
    pub mem_size: u64,
    pub alignment: u64,
}

Fields

segment_type: u32flags: u32offset: u64virtual_address: u64physical_address: u64file_size: u64mem_size: u64alignment: u64

Implementations

impl ProgramHeader[src]

pub fn segment_type(&self) -> SegmentType[src]

pub fn data<'a>(&self, elf: &'a Elf<'_>) -> &'a [u8][src]

pub fn is_executable(&self) -> bool[src]

pub fn is_writable(&self) -> bool[src]

pub fn is_readable(&self) -> bool[src]

pub fn iterate_note_entries<'a>(&self, elf: &'a Elf<'_>) -> Option<NoteIter<'a>>[src]

If this is a PT_NOTE segment, iterate the entries. Returns None if this isn't a note segment.

Trait Implementations

impl Debug for ProgramHeader[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for ProgramHeader where
    ProgramHeader: 'a, 
[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.