Struct goblin::pe::symbol::SymbolTable [−][src]
A COFF symbol table.
Implementations
impl<'a> SymbolTable<'a>
[src]
pub fn parse(
bytes: &'a [u8],
offset: usize,
number: usize
) -> Result<SymbolTable<'a>>
[src]
bytes: &'a [u8],
offset: usize,
number: usize
) -> Result<SymbolTable<'a>>
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]
&self,
index: usize
) -> Option<AuxFunctionDefinition>
Get the auxiliary symbol record for a function definition.
pub fn aux_begin_and_end_function(
&self,
index: usize
) -> Option<AuxBeginAndEndFunction>
[src]
&self,
index: usize
) -> Option<AuxBeginAndEndFunction>
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]
&self,
index: usize
) -> Option<AuxSectionDefinition>
Get the auxiliary symbol record for a section definition.
pub fn iter(&self) -> SymbolIterator<'a>ⓘNotable traits for SymbolIterator<'a>
impl<'a> Iterator for SymbolIterator<'a> type Item = (usize, Option<&'a str>, Symbol);
[src]
Notable traits for SymbolIterator<'a>
impl<'a> Iterator for SymbolIterator<'a> type Item = (usize, Option<&'a str>, Symbol);
Return an iterator for the COFF symbols.
This iterator skips over auxiliary symbol records.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for SymbolTable<'a>
impl<'a> Send for SymbolTable<'a>
impl<'a> Sync for SymbolTable<'a>
impl<'a> Unpin for SymbolTable<'a>
impl<'a> UnwindSafe for SymbolTable<'a>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,