Struct goblin::elf::program_header::ProgramHeader [] [src]

pub struct ProgramHeader {
    pub p_type: u32,
    pub p_flags: u32,
    pub p_offset: u64,
    pub p_vaddr: u64,
    pub p_paddr: u64,
    pub p_filesz: u64,
    pub p_memsz: u64,
    pub p_align: u64,
}

A unified ProgramHeader - convertable to and from 32-bit and 64-bit variants

Fields

Methods

impl ProgramHeader
[src]

Return the size of the underlying program header, given a Ctx

Create a new PT_LOAD ELF program header

Sets the executable flag

Sets the write flag

Sets the read flag

Trait Implementations

impl Default for ProgramHeader
[src]

Returns the "default value" for a type. Read more

impl PartialEq for ProgramHeader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ProgramHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ProgramHeader
[src]

Formats the value using the given formatter.

impl SizeWith<Ctx> for ProgramHeader
[src]

impl<'a> TryFromCtx<'a, (usize, Ctx)> for ProgramHeader
[src]

impl TryIntoCtx<(usize, Ctx)> for ProgramHeader
[src]

impl From<ProgramHeader> for ElfProgramHeader
[src]

Performs the conversion.

impl From<ProgramHeader> for ElfProgramHeader
[src]

Performs the conversion.