pub struct CoffSymbol {
pub name: String,
pub value: u32,
pub section_number: i16,
pub symbol_type: u16,
pub storage_class: u8,
pub number_of_aux_symbols: u8,
}Expand description
COFF 符号表项
表示 COFF 对象文件中的一个符号,包含符号名称、值、节号等信息。 符号可以是函数、变量、标签等程序中的标识符。
Fields§
§name: String符号名称,如果长度超过8字节则存储在字符串表中
value: u32符号的值,通常是地址或偏移量
section_number: i16符号所在的节号,0表示未定义,-1表示绝对符号,-2表示调试符号
symbol_type: u16符号类型,描述符号的基本类型
storage_class: u8存储类别,描述符号的作用域和生命周期
number_of_aux_symbols: u8辅助符号的数量
Implementations§
Source§impl CoffSymbol
impl CoffSymbol
Sourcepub fn read<R: ReadBytesExt>(
reader: &mut CoffViewer<R>,
) -> Result<Self, GaiaError>
pub fn read<R: ReadBytesExt>( reader: &mut CoffViewer<R>, ) -> Result<Self, GaiaError>
从 CoffViewer 读取符号
Trait Implementations§
Source§impl Clone for CoffSymbol
impl Clone for CoffSymbol
Source§fn clone(&self) -> CoffSymbol
fn clone(&self) -> CoffSymbol
Returns a duplicate 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 CoffSymbol
impl Debug for CoffSymbol
Source§impl<'de> Deserialize<'de> for CoffSymbol
impl<'de> Deserialize<'de> for CoffSymbol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoffSymbol
impl RefUnwindSafe for CoffSymbol
impl Send for CoffSymbol
impl Sync for CoffSymbol
impl Unpin for CoffSymbol
impl UnwindSafe for CoffSymbol
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