Trait object::read::coff::CoffHeader

source ·
pub trait CoffHeader: Debug + Pod {
    type ImageSymbol: ImageSymbol;
    type ImageSymbolBytes: Debug + Pod;

    fn is_type_bigobj() -> bool;
    fn machine(&self) -> u16;
    fn number_of_sections(&self) -> u32;
    fn pointer_to_symbol_table(&self) -> u32;
    fn number_of_symbols(&self) -> u32;
    fn characteristics(&self) -> u16;
    fn parse<'data, R: ReadRef<'data>>(
        data: R,
        offset: &mut u64
    ) -> Result<&'data Self>; fn sections<'data, R: ReadRef<'data>>(
        &self,
        data: R,
        offset: u64
    ) -> Result<SectionTable<'data>> { ... } fn symbols<'data, R: ReadRef<'data>>(
        &self,
        data: R
    ) -> Result<SymbolTable<'data, R, Self>> { ... } }
Expand description

A trait for generic access to ImageFileHeader and AnonObjectHeaderBigobj.

Required Associated Types§

Required Methods§

Return true if this type is AnonObjectHeaderBigobj.

This is a property of the type, not a value in the header data.

Read the file header.

data must be the entire file data. offset must be the file header offset. It is updated to point after the optional header, which is where the section headers are located.

Provided Methods§

Read the section table.

data must be the entire file data. offset must be after the optional file header.

Read the symbol table and string table.

data must be the entire file data.

Implementors§