Struct object::read::pe::SymbolTable [−][src]
pub struct SymbolTable<'data> { /* fields omitted */ }
A table of symbol entries in a COFF or PE file.
Also includes the string table used for the symbol names.
Implementations
impl<'data> SymbolTable<'data>
[src]
impl<'data> SymbolTable<'data>
[src]pub fn parse(header: &ImageFileHeader, data: Bytes<'data>) -> Result<Self>
[src]
Read the symbol table.
pub fn strings(&self) -> StringTable<'data>
[src]
Return the string table used for the symbol names.
pub fn is_empty(&self) -> bool
[src]
Return true if the symbol table is empty.
pub fn len(&self) -> usize
[src]
The number of symbols.
pub fn symbol(&self, index: usize) -> Result<&'data ImageSymbol>
[src]
Return the symbol table entry at the given index.
pub fn get<T: Pod>(&self, index: usize) -> Result<&'data T>
[src]
Return the symbol table entry or auxiliary record at the given index.
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data ImageSymbol) -> Option<Entry>>(
&self,
f: F
) -> SymbolMap<Entry>
[src]
&self,
f: F
) -> SymbolMap<Entry>
Construct a map from addresses to a user-defined map entry.