Struct object::read::coff::SymbolTable [−][src]
pub struct SymbolTable<'data> { /* fields omitted */ }
Expand description
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<R: ReadRef<'data>>(
header: &ImageFileHeader,
data: R
) -> Result<Self>
[src]
pub fn parse<R: ReadRef<'data>>(
header: &ImageFileHeader,
data: R
) -> Result<Self>
[src]Read the symbol table.
pub fn strings(&self) -> StringTable<'data>
[src]
pub fn strings(&self) -> StringTable<'data>
[src]Return the string table used for the symbol names.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
[src]The number of symbol table entries.
This includes auxiliary symbol table entries.
pub fn iter<'table>(&'table self) -> SymbolIterator<'data, 'table>ⓘNotable traits for SymbolIterator<'data, 'table>
impl<'data, 'table> Iterator for SymbolIterator<'data, 'table> type Item = (usize, &'data ImageSymbol);
[src]
pub fn iter<'table>(&'table self) -> SymbolIterator<'data, 'table>ⓘNotable traits for SymbolIterator<'data, 'table>
impl<'data, 'table> Iterator for SymbolIterator<'data, 'table> type Item = (usize, &'data ImageSymbol);
[src]Iterate over the symbols.
pub fn symbol(&self, index: usize) -> Result<&'data ImageSymbol>
[src]
pub fn symbol(&self, index: usize) -> Result<&'data ImageSymbol>
[src]Return the symbol table entry at the given index.
pub fn aux_function(
&self,
index: usize
) -> Result<&'data ImageAuxSymbolFunction>
[src]
pub fn aux_function(
&self,
index: usize
) -> Result<&'data ImageAuxSymbolFunction>
[src]Return the auxiliary function symbol for the symbol table entry at the given index.
Note that the index is of the symbol, not the first auxiliary record.
pub fn aux_section(&self, index: usize) -> Result<&'data ImageAuxSymbolSection>
[src]
pub fn aux_section(&self, index: usize) -> Result<&'data ImageAuxSymbolSection>
[src]Return the auxiliary section symbol for the symbol table entry at the given index.
Note that the index is of the symbol, not the first auxiliary record.
pub fn aux_file_name(&self, index: usize, aux_count: u8) -> Result<&'data [u8]>
[src]
pub fn aux_file_name(&self, index: usize, aux_count: u8) -> Result<&'data [u8]>
[src]Return the auxiliary file name for the symbol table entry at the given index.
Note that the index is of the symbol, not the first auxiliary record.
pub fn get<T: Pod>(&self, index: usize, offset: usize) -> Result<&'data T>
[src]
pub fn get<T: Pod>(&self, index: usize, offset: usize) -> Result<&'data T>
[src]Return the symbol table entry or auxiliary record at the given index and offset.
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data ImageSymbol) -> Option<Entry>>(
&self,
f: F
) -> SymbolMap<Entry>
[src]
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data ImageSymbol) -> Option<Entry>>(
&self,
f: F
) -> SymbolMap<Entry>
[src]Construct a map from addresses to a user-defined map entry.