#[repr(C)]pub struct Header {}Fields§
§e_ident: [u8; 16]Magic number and other info
e_type: u16Object file type
e_machine: u16Architecture
e_version: u32Object file version
e_entry: u64Entry point virtual address
e_phoff: u64Program header table file offset
e_shoff: u64Section header table file offset
e_flags: u32Processor-specific flags
e_ehsize: u16ELF header size in bytes
e_phentsize: u16Program header table entry size
e_phnum: u16Program header table entry count
e_shentsize: u16Section header table entry size
e_shnum: u16Section header table entry count
e_shstrndx: u16Section header string table index
Implementations§
Trait Implementations§
Source§impl Plain for Header
impl Plain for Header
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where
Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where
Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where
Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where
Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where
Self: Sized,
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize,
) -> Result<&mut [Self], Error>where
Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Source§impl<'a> TryFromCtx<'a, Endian> for Header
impl<'a> TryFromCtx<'a, Endian> for Header
Source§impl TryIntoCtx<Endian> for Header
impl TryIntoCtx<Endian> for Header
impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more