#[repr(C)]
pub struct ProgramHeader64<E: Endian> { pub p_type: U32<E>, pub p_flags: U32<E>, pub p_offset: U64<E>, pub p_vaddr: U64<E>, pub p_paddr: U64<E>, pub p_filesz: U64<E>, pub p_memsz: U64<E>, pub p_align: U64<E>, }
Expand description

Program segment header.

Fields

p_type: U32<E>

Segment type. One of the PT_* constants.

p_flags: U32<E>

Segment flags. A combination of the PF_* constants.

p_offset: U64<E>

Segment file offset.

p_vaddr: U64<E>

Segment virtual address.

p_paddr: U64<E>

Segment physical address.

p_filesz: U64<E>

Segment size in the file.

p_memsz: U64<E>

Segment size in memory.

p_align: U64<E>

Segment alignment.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return the offset and size of the segment in the file.

Return the segment data. Read more

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

Return a note iterator for the segment data. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.