pub struct CoffSymbol {
pub name: String,
pub value: u32,
pub section_number: i16,
pub type_: u16,
pub storage_class: u8,
pub aux_count: u8,
}Expand description
One main COFF symbol-table entry, with its name resolved through
the string table when needed. Aux records are skipped on iteration
(their aux_count field on the preceding main symbol governs
how many to skip).
Fields§
§name: StringThe symbol’s name. For “long” names (those whose first 4 bytes are zero), the trailing 4 bytes index into the COFF string table; we resolve the indirection here. Empty when the indirection points outside the string table.
value: u32Value associated with the symbol. For function symbols defined in a section, this is the offset within the section.
section_number: i161-indexed section number; 0 for undefined, -1 for
IMAGE_SYM_ABSOLUTE, -2 for IMAGE_SYM_DEBUG.
type_: u16Combined low-byte (base type) + high-byte (derived type).
Functions have the COFF_DTYPE_FUNCTION high nibble.
storage_class: u8IMAGE_SYM_CLASS_* value.
aux_count: u8Number of trailing aux records belonging to this symbol.
Implementations§
Source§impl CoffSymbol
impl CoffSymbol
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
True when this symbol’s Type field marks it a function.
Trait Implementations§
Source§impl Clone for CoffSymbol
impl Clone for CoffSymbol
Source§fn clone(&self) -> CoffSymbol
fn clone(&self) -> CoffSymbol
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoffSymbol
impl Debug for CoffSymbol
Source§impl PartialEq for CoffSymbol
impl PartialEq for CoffSymbol
Source§fn eq(&self, other: &CoffSymbol) -> bool
fn eq(&self, other: &CoffSymbol) -> bool
self and other values to be equal, and is used by ==.