Struct goblin::elf::header::header64::Header [] [src]

#[repr(C)]
pub struct Header { pub e_ident: [u8; 16], pub e_type: u16, pub e_machine: u16, pub e_version: u32, pub e_entry: u64, pub e_phoff: u64, pub e_shoff: u64, pub e_flags: u32, pub e_ehsize: u16, pub e_phentsize: u16, pub e_phnum: u16, pub e_shentsize: u16, pub e_shnum: u16, pub e_shstrndx: u16, }

Fields

Magic number and other info

Object file type

Architecture

Object file version

Entry point virtual address

Program header table file offset

Section header table file offset

Processor-specific flags

ELF header size in bytes

Program header table entry size

Program header table entry count

Section header table entry size

Section header table entry count

Section header string table index

Methods

impl Header
[src]

Load a header from a file. You must ensure the seek is at the correct position.

Parses an ELF header from the given buffer

impl Header
[src]

Returns the corresponding ELF header from the given byte array.

Trait Implementations

impl From<ElfHeader> for Header
[src]

Performs the conversion.

impl<'a> TryFromCtx<'a> for Header
[src]

impl TryIntoCtx for Header
[src]

a Pwrite impl for Header: note we use the endianness value in the header, and not a parameter

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Header
[src]

impl Default for Header
[src]

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

impl PartialEq for Header
[src]

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

This method tests for !=.

impl Debug for Header
[src]

Formats the value using the given formatter.