Struct goblin::elf::header::header64::Header [−][src]
Fields
e_ident: [u8; 16]
Magic number and other info
e_type: u16
Object file type
e_machine: u16
Architecture
e_version: u32
Object file version
e_entry: u64
Entry point virtual address
e_phoff: u64
Program header table file offset
e_shoff: u64
Section header table file offset
e_flags: u32
Processor-specific flags
e_ehsize: u16
ELF header size in bytes
e_phentsize: u16
Program header table entry size
e_phnum: u16
Program header table entry count
e_shentsize: u16
Section header table entry size
e_shnum: u16
Section header table entry count
e_shstrndx: u16
Section header string table index
Implementations
impl Header
[src]
pub fn from_bytes(bytes: &[u8; 64]) -> &Header
[src]
Returns the corresponding ELF header from the given byte array.
impl Header
[src]
pub fn from_fd(bytes: &mut File) -> Result<Header>
[src]
Load a header from a file. You must ensure the seek is at the correct position.
pub fn parse(bytes: &[u8]) -> Result<Header>
[src]
Parses an ELF header from the given bytes
Trait Implementations
impl Clone for Header
[src]
impl Copy for Header
[src]
impl Debug for Header
[src]
impl Default for Header
[src]
impl From<Header> for Header
[src]
impl From<Header> for ElfHeader
[src]
impl PartialEq<Header> for Header
[src]
impl Plain for Header
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
[src]
pub fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
[src]
pub fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
[src]
pub fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
[src]
pub fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
[src]
pub fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
[src]
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
pub fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
[src]
impl StructuralPartialEq for Header
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Header
[src]
type Error = Error
fn try_from_ctx(
bytes: &'a [u8],
_: Endian
) -> Result<(Self, usize), Self::Error>
[src]
bytes: &'a [u8],
_: Endian
) -> Result<(Self, usize), Self::Error>
impl TryIntoCtx<Endian, [u8]> for Header
[src]
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,