Struct goblin::pe::header::CoffHeader [−][src]
COFF Header
Fields
machine: u16
The machine type
number_of_sections: u16
time_date_stamp: u32
pointer_to_symbol_table: u32
number_of_symbol_table: u32
size_of_optional_header: u16
characteristics: u16
Implementations
impl CoffHeader
[src]
pub fn parse(bytes: &[u8], offset: &mut usize) -> Result<Self>
[src]
pub fn sections(
&self,
bytes: &[u8],
offset: &mut usize
) -> Result<Vec<SectionTable>>
[src]
&self,
bytes: &[u8],
offset: &mut usize
) -> Result<Vec<SectionTable>>
Parse the COFF section headers.
For COFF, these immediately follow the COFF header. For PE, these immediately follow the optional header.
pub fn symbols<'a>(&self, bytes: &'a [u8]) -> Result<SymbolTable<'a>>
[src]
Return the COFF symbol table.
pub fn strings<'a>(&self, bytes: &'a [u8]) -> Result<Strtab<'a>>
[src]
Return the COFF string table.
Trait Implementations
impl Clone for CoffHeader
[src]
fn clone(&self) -> CoffHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CoffHeader
[src]
impl Debug for CoffHeader
[src]
impl Default for CoffHeader
[src]
fn default() -> CoffHeader
[src]
impl FromCtx<Endian, [u8]> for CoffHeader
[src]
impl<'a> IntoCtx<Endian, [u8]> for &'a CoffHeader
[src]
impl IntoCtx<Endian, [u8]> for CoffHeader
[src]
impl PartialEq<CoffHeader> for CoffHeader
[src]
fn eq(&self, other: &CoffHeader) -> bool
[src]
fn ne(&self, other: &CoffHeader) -> bool
[src]
impl SizeWith<Endian> for CoffHeader
[src]
impl StructuralPartialEq for CoffHeader
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for CoffHeader where
CoffHeader: 'a,
[src]
CoffHeader: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a CoffHeader
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for CoffHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for CoffHeader
impl Send for CoffHeader
impl Sync for CoffHeader
impl Unpin for CoffHeader
impl UnwindSafe for CoffHeader
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>,