Trait object::read::coff::ImageSymbol
source · pub trait ImageSymbol: Debug + Pod {
Show 14 methods
// Required methods
fn raw_name(&self) -> &[u8; 8];
fn value(&self) -> u32;
fn section_number(&self) -> i32;
fn typ(&self) -> u16;
fn storage_class(&self) -> u8;
fn number_of_aux_symbols(&self) -> u8;
// Provided methods
fn name<'data, R: ReadRef<'data>>(
&'data self,
strings: StringTable<'data, R>,
) -> Result<&'data [u8]> { ... }
fn address(
&self,
image_base: u64,
sections: &SectionTable<'_>,
) -> Result<u64> { ... }
fn is_definition(&self) -> bool { ... }
fn has_aux_file_name(&self) -> bool { ... }
fn has_aux_function(&self) -> bool { ... }
fn has_aux_section(&self) -> bool { ... }
fn base_type(&self) -> u16 { ... }
fn derived_type(&self) -> u16 { ... }
}
Expand description
A trait for generic access to ImageSymbol
and ImageSymbolEx
.
Required Methods§
fn raw_name(&self) -> &[u8; 8]
fn value(&self) -> u32
fn section_number(&self) -> i32
fn typ(&self) -> u16
fn storage_class(&self) -> u8
fn number_of_aux_symbols(&self) -> u8
Provided Methods§
sourcefn name<'data, R: ReadRef<'data>>(
&'data self,
strings: StringTable<'data, R>,
) -> Result<&'data [u8]>
fn name<'data, R: ReadRef<'data>>( &'data self, strings: StringTable<'data, R>, ) -> Result<&'data [u8]>
Parse a COFF symbol name.
strings
must be the string table used for symbol names.
sourcefn address(&self, image_base: u64, sections: &SectionTable<'_>) -> Result<u64>
fn address(&self, image_base: u64, sections: &SectionTable<'_>) -> Result<u64>
Return the symbol address.
This takes into account the image base and the section address.
sourcefn is_definition(&self) -> bool
fn is_definition(&self) -> bool
Return true if the symbol is a definition of a function or data object.
sourcefn has_aux_file_name(&self) -> bool
fn has_aux_file_name(&self) -> bool
Return true if the symbol has an auxiliary file name.
sourcefn has_aux_function(&self) -> bool
fn has_aux_function(&self) -> bool
Return true if the symbol has an auxiliary function symbol.
sourcefn has_aux_section(&self) -> bool
fn has_aux_section(&self) -> bool
Return true if the symbol has an auxiliary section symbol.
fn base_type(&self) -> u16
fn derived_type(&self) -> u16
Object Safety§
This trait is not object safe.