#[repr(C)]pub struct Symbol32 {
pub n_name: [u8; 8],
pub n_value: U32<BigEndian>,
pub n_scnum: I16<BigEndian>,
pub n_type: U16<BigEndian>,
pub n_sclass: u8,
pub n_numaux: u8,
}
Expand description
Symbol table entry.
Fields§
§n_name: [u8; 8]
Symbol name.
If first 4 bytes are 0, then second 4 bytes are offset into string table.
n_value: U32<BigEndian>
Symbol value; storage class-dependent.
n_scnum: I16<BigEndian>
Section number of symbol.
n_type: U16<BigEndian>
Basic and derived type specification.
n_sclass: u8
Storage class of symbol.
n_numaux: u8
Number of auxiliary entries.
Trait Implementations§
source§impl Symbol for Symbol32
impl Symbol for Symbol32
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 the symbol name for XCOFF32.
type Word = u32
fn n_value(&self) -> Self::Word
fn n_scnum(&self) -> i16
fn n_type(&self) -> u16
fn n_sclass(&self) -> u8
fn n_numaux(&self) -> u8
fn name_offset(&self) -> Option<u32>
source§fn is_undefined(&self) -> bool
fn is_undefined(&self) -> bool
Return true if the symbol is undefined.
source§fn has_aux_file(&self) -> bool
fn has_aux_file(&self) -> bool
Return true if the symbol has file auxiliary entry.
source§fn has_aux_csect(&self) -> bool
fn has_aux_csect(&self) -> bool
Return true if the symbol has csect auxiliary entry. Read more
impl Copy for Symbol32
impl Pod for Symbol32
Auto Trait Implementations§
impl Freeze for Symbol32
impl RefUnwindSafe for Symbol32
impl Send for Symbol32
impl Sync for Symbol32
impl Unpin for Symbol32
impl UnwindSafe for Symbol32
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