Struct object::pe::ImageSymbol
source · #[repr(C)]pub struct ImageSymbol {
pub name: [u8; 8],
pub value: U32Bytes<LittleEndian>,
pub section_number: U16Bytes<LittleEndian>,
pub typ: U16Bytes<LittleEndian>,
pub storage_class: u8,
pub number_of_aux_symbols: u8,
}
Fields§
§name: [u8; 8]
If first 4 bytes are 0, then second 4 bytes are offset into string table.
value: U32Bytes<LittleEndian>
§section_number: U16Bytes<LittleEndian>
§typ: U16Bytes<LittleEndian>
§storage_class: u8
§number_of_aux_symbols: u8
Trait Implementations§
source§impl Clone for ImageSymbol
impl Clone for ImageSymbol
source§fn clone(&self) -> ImageSymbol
fn clone(&self) -> ImageSymbol
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageSymbol
impl Debug for ImageSymbol
source§impl ImageSymbol for ImageSymbol
impl ImageSymbol for ImageSymbol
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
source§fn 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. Read more
source§fn address(&self, image_base: u64, sections: &SectionTable<'_>) -> Result<u64>
fn address(&self, image_base: u64, sections: &SectionTable<'_>) -> Result<u64>
Return the symbol address. Read more
source§fn is_definition(&self) -> bool
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
fn has_aux_file_name(&self) -> bool
Return true if the symbol has an auxiliary file name.
source§fn has_aux_function(&self) -> bool
fn has_aux_function(&self) -> bool
Return true if the symbol has an auxiliary function symbol.
source§fn 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
impl Copy for ImageSymbol
impl Pod for ImageSymbol
Auto Trait Implementations§
impl Freeze for ImageSymbol
impl RefUnwindSafe for ImageSymbol
impl Send for ImageSymbol
impl Sync for ImageSymbol
impl Unpin for ImageSymbol
impl UnwindSafe for ImageSymbol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more