Struct atom_macho::nlist::NList64
source · [−]pub struct NList64 {
pub n_strx: u32,
pub n_type: NTypeField,
pub n_sect: u8,
pub n_desc: u16,
pub n_value: u64,
}
Fields
n_strx: u32
An index into the string table. To specify an empty string (“”), set this value to 0.
n_type: NTypeField
this field really contains four fields.
n_sect: u8
If the type is NType::Sect then the n_sect field contains an ordinal of the section the symbol is defined in. The sections are numbered from 1 and refer to sections in order they appear in the load commands for the file they are in. This means the same ordinal may very well refer to different sections in different files.
The n_value field for all symbol table entries (including n_stab’s) gets updated by the link editor based on the value of its n_sect field and where the section n_sect references gets relocated. If the value of the n_sect field is NO_SECT then it’s n_value field is not changed by the link editor.
n_desc: u16
A 16-bit value providing additional information about the nature of this symbol.
n_value: u64
An integer that contains the value of the symbol. The format of this value is different for each type of symbol table entry (as specified by the n_type field). For the N_SECT symbol type, n_value is the address of the symbol. See the description of the n_type field for information on other possible values.
Implementations
Trait Implementations
impl Copy for NList64
impl Eq for NList64
impl StructuralEq for NList64
impl StructuralPartialEq for NList64
Auto Trait Implementations
impl RefUnwindSafe for NList64
impl Send for NList64
impl Sync for NList64
impl Unpin for NList64
impl UnwindSafe for NList64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more