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][+]
impl Copy for CoffHeader
[src]
impl Debug for CoffHeader
[src][+]
impl Default for 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][+]
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,
impl<'a> TryIntoCtx<Endian, [u8]> for &'a CoffHeader
[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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,