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§

source

fn raw_name(&self) -> &[u8; 8]

source

fn value(&self) -> u32

source

fn section_number(&self) -> i32

source

fn typ(&self) -> u16

source

fn storage_class(&self) -> u8

source

fn number_of_aux_symbols(&self) -> u8

Provided Methods§

source

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.

source

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.

source

fn is_definition(&self) -> bool

Return true if the symbol is a definition of a function or data object.

source

fn has_aux_file_name(&self) -> bool

Return true if the symbol has an auxiliary file name.

source

fn has_aux_function(&self) -> bool

Return true if the symbol has an auxiliary function symbol.

source

fn has_aux_section(&self) -> bool

Return true if the symbol has an auxiliary section symbol.

source

fn base_type(&self) -> u16

source

fn derived_type(&self) -> u16

Object Safety§

This trait is not object safe.

Implementors§