Struct object::read::macho::SymbolTable
source · pub struct SymbolTable<'data, Mach: MachHeader, R = &'data [u8]>where
R: ReadRef<'data>,{ /* private fields */ }
Expand description
A table of symbol entries in a Mach-O file.
Also includes the string table used for the symbol names.
Implementations§
source§impl<'data, Mach: MachHeader, R: ReadRef<'data>> SymbolTable<'data, Mach, R>
impl<'data, Mach: MachHeader, R: ReadRef<'data>> SymbolTable<'data, Mach, R>
sourcepub fn strings(&self) -> StringTable<'data, R>
pub fn strings(&self) -> StringTable<'data, R>
Return the string table used for the symbol names.
sourcepub fn symbol(&self, index: usize) -> Result<&'data Mach::Nlist>
pub fn symbol(&self, index: usize) -> Result<&'data Mach::Nlist>
Return the symbol at the given index.
sourcepub fn map<Entry: SymbolMapEntry, F: Fn(&'data Mach::Nlist) -> Option<Entry>>(
&self,
f: F
) -> SymbolMap<Entry>
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data Mach::Nlist) -> Option<Entry>>(
&self,
f: F
) -> SymbolMap<Entry>
Construct a map from addresses to a user-defined map entry.
sourcepub fn object_map(&self, endian: Mach::Endian) -> ObjectMap<'data>
pub fn object_map(&self, endian: Mach::Endian) -> ObjectMap<'data>
Construct a map from addresses to symbol names and object file names.
Trait Implementations§
source§impl<'data, Mach: Clone + MachHeader, R> Clone for SymbolTable<'data, Mach, R>where
R: ReadRef<'data> + Clone,
Mach::Nlist: Clone,
impl<'data, Mach: Clone + MachHeader, R> Clone for SymbolTable<'data, Mach, R>where
R: ReadRef<'data> + Clone,
Mach::Nlist: Clone,
source§fn clone(&self) -> SymbolTable<'data, Mach, R>
fn clone(&self) -> SymbolTable<'data, Mach, R>
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 more