Struct object::macho::SymtabCommand
source · #[repr(C)]pub struct SymtabCommand<E: Endian> {
pub cmd: U32<E>,
pub cmdsize: U32<E>,
pub symoff: U32<E>,
pub nsyms: U32<E>,
pub stroff: U32<E>,
pub strsize: U32<E>,
}
Fields§
§cmd: U32<E>
LC_SYMTAB
cmdsize: U32<E>
sizeof(struct SymtabCommand)
symoff: U32<E>
symbol table offset
nsyms: U32<E>
number of symbol table entries
stroff: U32<E>
string table offset
strsize: U32<E>
string table size in bytes
Implementations§
source§impl<E: Endian> SymtabCommand<E>
impl<E: Endian> SymtabCommand<E>
sourcepub fn symbols<'data, Mach: MachHeader<Endian = E>, R: ReadRef<'data>>(
&self,
endian: E,
data: R
) -> Result<SymbolTable<'data, Mach, R>>
pub fn symbols<'data, Mach: MachHeader<Endian = E>, R: ReadRef<'data>>( &self, endian: E, data: R ) -> Result<SymbolTable<'data, Mach, R>>
Return the symbol table that this command references.
Trait Implementations§
source§impl<E: Clone + Endian> Clone for SymtabCommand<E>
impl<E: Clone + Endian> Clone for SymtabCommand<E>
source§fn clone(&self) -> SymtabCommand<E>
fn clone(&self) -> SymtabCommand<E>
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 moreimpl<E: Copy + Endian> Copy for SymtabCommand<E>
impl<E: Endian> Pod for SymtabCommand<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for SymtabCommand<E>where E: RefUnwindSafe,
impl<E> Send for SymtabCommand<E>where E: Send,
impl<E> Sync for SymtabCommand<E>where E: Sync,
impl<E> Unpin for SymtabCommand<E>where E: Unpin,
impl<E> UnwindSafe for SymtabCommand<E>where E: UnwindSafe,
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