[][src]Struct goblin::mach::symbols::Symbols

pub struct Symbols<'a> { /* fields omitted */ }

A zero-copy "nlist" style symbol table ("stab"), including the string table

Methods

impl<'a> Symbols<'a>[src]

pub fn new(
    bytes: &'a [u8],
    start: usize,
    count: usize,
    strtab: usize
) -> Result<Symbols<'a>>
[src]

Creates a new symbol table with count elements, from the start offset, using the string table at strtab, with a default ctx. Beware, this will provide incorrect results if you construct this on a 32-bit mach binary, using a 64-bit machine; use parse instead if you want 32/64 bit support

pub fn parse(
    bytes: &'a [u8],
    symtab: &SymtabCommand,
    ctx: Ctx
) -> Result<Symbols<'a>>
[src]

Important traits for SymbolIterator<'a>
pub fn iter(&self) -> SymbolIterator<'a>[src]

pub fn get(&self, index: usize) -> Result<(&'a str, Nlist)>[src]

Parses a single Nlist symbol from the binary, with its accompanying name

Trait Implementations

impl<'a, 'b> IntoIterator for &'b Symbols<'a>[src]

type Item = <SymbolIterator<'a> as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = SymbolIterator<'a>

Which kind of iterator are we turning this into?

impl<'a> Debug for Symbols<'a>[src]

impl<'a, T: ?Sized> TryFromCtx<'a, SymbolsCtx, T> for Symbols<'a> where
    T: AsRef<[u8]>, 
[src]

type Error = Error

type Size = usize

Auto Trait Implementations

impl<'a> Send for Symbols<'a>

impl<'a> Unpin for Symbols<'a>

impl<'a> Sync for Symbols<'a>

impl<'a> UnwindSafe for Symbols<'a>

impl<'a> RefUnwindSafe for Symbols<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]