[][src]Struct goblin::pe::symbol::SymbolTable

pub struct SymbolTable<'a> { /* fields omitted */ }

A COFF symbol table.

Methods

impl<'a> SymbolTable<'a>[src]

pub fn parse(
    bytes: &'a [u8],
    offset: usize,
    number: usize
) -> Result<SymbolTable<'a>>
[src]

Parse a COFF symbol table at the given offset.

The offset and number of symbols should be from the COFF header.

pub fn size(number: usize) -> usize[src]

Get the size in bytes of the symbol table.

pub fn get(&self, index: usize) -> Option<(Option<&'a str>, Symbol)>[src]

Get the symbol at the given index.

If the symbol has an inline name, then also returns a reference to the name's location in bytes.

pub fn aux_function_definition(
    &self,
    index: usize
) -> Option<AuxFunctionDefinition>
[src]

Get the auxiliary symbol record for a function definition.

pub fn aux_begin_and_end_function(
    &self,
    index: usize
) -> Option<AuxBeginAndEndFunction>
[src]

Get the auxiliary symbol record for a .bf or .ef symbol record.

pub fn aux_weak_external(&self, index: usize) -> Option<AuxWeakExternal>[src]

Get the auxiliary symbol record for a weak external.

pub fn aux_file(&self, index: usize, number: usize) -> Option<&'a str>[src]

Get the file name from the auxiliary symbol record for a file symbol record.

pub fn aux_section_definition(
    &self,
    index: usize
) -> Option<AuxSectionDefinition>
[src]

Get the auxiliary symbol record for a section definition.

Important traits for SymbolIterator<'a>
pub fn iter(&self) -> SymbolIterator<'a>[src]

Return an iterator for the COFF symbols.

This iterator skips over auxiliary symbol records.

Trait Implementations

impl<'a> Debug for SymbolTable<'a>[src]

Auto Trait Implementations

impl<'a> Send for SymbolTable<'a>

impl<'a> Unpin for SymbolTable<'a>

impl<'a> Sync for SymbolTable<'a>

impl<'a> UnwindSafe for SymbolTable<'a>

impl<'a> RefUnwindSafe for SymbolTable<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]