Struct elf::types::FileHeader [] [src]

pub struct FileHeader {
    pub class: Class,
    pub data: Data,
    pub version: Version,
    pub osabi: OSABI,
    pub abiversion: u8,
    pub elftype: Type,
    pub machine: Machine,
    pub entry: u64,
}

Encapsulates the contents of the ELF File Header

The ELF File Header starts off every ELF file and both identifies the file contents and informs how to interpret said contents. This includes the width of certain fields (32-bit vs 64-bit), the data endianness, the file type, and more.

Fields

class: Class

32-bit vs 64-bit

data: Data

little vs big endian

version: Version

elf version

osabi: OSABI

OS ABI

abiversion: u8

Version of the OS ABI

elftype: Type

ELF file type

machine: Machine

Target machine architecture

entry: u64

Virtual address of program entry point

Methods

impl FileHeader
[src]

fn new() -> FileHeader

Trait Implementations

impl Eq for FileHeader
[src]

impl PartialEq for FileHeader
[src]

fn eq(&self, __arg_0: &FileHeader) -> bool

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

fn ne(&self, __arg_0: &FileHeader) -> bool

This method tests for !=.

impl Debug for FileHeader
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for FileHeader
[src]

fn clone(&self) -> FileHeader

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for FileHeader
[src]

impl Display for FileHeader
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.