Struct object::elf::ProgramHeader32 [−][src]
#[repr(C)]pub struct ProgramHeader32<E: Endian> {
pub p_type: U32<E>,
pub p_offset: U32<E>,
pub p_vaddr: U32<E>,
pub p_paddr: U32<E>,
pub p_filesz: U32<E>,
pub p_memsz: U32<E>,
pub p_flags: U32<E>,
pub p_align: U32<E>,
}
Expand description
Program segment header.
Fields
p_type: U32<E>
Segment type. One of the PT_*
constants.
p_offset: U32<E>
Segment file offset.
p_vaddr: U32<E>
Segment virtual address.
p_paddr: U32<E>
Segment physical address.
p_filesz: U32<E>
Segment size in the file.
p_memsz: U32<E>
Segment size in memory.
p_flags: U32<E>
Segment flags. A combination of the PF_*
constants.
p_align: U32<E>
Segment alignment.
Trait Implementations
type Endian = Endian
type Elf = FileHeader32<Endian>
Return the offset and size of the segment in the file.
Return the segment data. Read more
fn data_as_array<'data, T: Pod, R: ReadRef<'data>>(
&self,
endian: Self::Endian,
data: R
) -> Result<&'data [T], ()>
fn data_as_array<'data, T: Pod, R: ReadRef<'data>>(
&self,
endian: Self::Endian,
data: R
) -> Result<&'data [T], ()>
Return the segment data as a slice of the given type. Read more
Return the segment data in the given virtual address range Read more
Return entries in a dynamic segment. Read more
Auto Trait Implementations
impl<E> RefUnwindSafe for ProgramHeader32<E> where
E: RefUnwindSafe,
impl<E> Send for ProgramHeader32<E> where
E: Send,
impl<E> Sync for ProgramHeader32<E> where
E: Sync,
impl<E> Unpin for ProgramHeader32<E> where
E: Unpin,
impl<E> UnwindSafe for ProgramHeader32<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more