[−][src]Struct goblin::elf::header::Header
An ELF header
Fields
e_ident: [u8; 16]
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: u16
Methods
impl Header
[src]
pub fn size(ctx: Ctx) -> usize
[src]
Return the size of the underlying program header, given a container
pub fn container(&self) -> Result<Container>
[src]
Returns the container type this header specifies
pub fn endianness(&self) -> Result<Endian>
[src]
Returns the byte order this header specifies
pub fn new(ctx: Ctx) -> Self
[src]
Trait Implementations
impl Clone for Header
[src]
impl PartialEq<Header> for Header
[src]
impl From<Header> for Header
[src]
impl From<Header> for ElfHeader
[src]
impl From<Header> for Header
[src]
impl From<Header> for ElfHeader
[src]
impl Copy for Header
[src]
impl Debug for Header
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Header
[src]
type Error = Error
type Size = usize
fn try_from_ctx(bytes: &'a [u8], _ctx: Endian) -> Result<(Self, Self::Size)>
[src]
impl IntoCtx<Ctx, [u8]> for Header
[src]
impl TryIntoCtx<Endian, [u8]> for Header
[src]
type Error = Error
type Size = usize
fn try_into_ctx(
self,
bytes: &mut [u8],
_ctx: Endian
) -> Result<Self::Size, Self::Error>
[src]
self,
bytes: &mut [u8],
_ctx: Endian
) -> Result<Self::Size, Self::Error>
impl SizeWith<Ctx> for Header
[src]
Auto Trait Implementations
impl Sync for Header
impl Send for Header
impl Unpin for Header
impl UnwindSafe for Header
impl RefUnwindSafe for Header
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,