pub struct ELFHeader {Show 20 fields
pub ei_magic: [u8; 4],
pub ei_class: u8,
pub ei_data: u8,
pub ei_version: u8,
pub ei_osabi: u8,
pub ei_abiversion: u8,
pub ei_pad: [u8; 7],
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§
§ei_magic: [u8; 4]§ei_class: u8§ei_data: u8§ei_version: u8§ei_osabi: u8§ei_abiversion: u8§ei_pad: [u8; 7]§e_type: u16§e_machine: u16§e_version: u32§e_entry: u64§e_phoff: u64§e_shoff: u64§e_flags: u32§e_ehsize: u16§e_phentsize: u16§e_phnum: u16§e_shentsize: u16§e_shnum: u16§e_shstrndx: u16Implementations§
Source§impl ELFHeader
impl ELFHeader
pub fn from_elf_file( elf_file: &ElfFile64<'_, Endianness>, ) -> Result<Self, DisassemblerError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ELFHeader
impl<'de> Deserialize<'de> for ELFHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ELFHeader
impl RefUnwindSafe for ELFHeader
impl Send for ELFHeader
impl Sync for ELFHeader
impl Unpin for ELFHeader
impl UnwindSafe for ELFHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more