Struct goblin::elf::sym::Symtab
[−]
[src]
pub struct Symtab<'a> { /* fields omitted */ }
An ELF symbol table, allowing lazy iteration over symbols
Methods
impl<'a> Symtab<'a>
[src]
fn parse(
bytes: &'a [u8],
offset: usize,
count: usize,
ctx: Ctx
) -> Result<Symtab<'a>>
[src]
bytes: &'a [u8],
offset: usize,
count: usize,
ctx: Ctx
) -> Result<Symtab<'a>>
Parse a table of count
ELF symbols from offset
.
fn get(&self, index: usize) -> Option<Sym>
[src]
Try to parse a single symbol from the binary, at index
.
fn len(&self) -> usize
[src]
The number of symbols in the table.
fn iter(&self) -> SymIterator<'a>
[src]
Iterate over all symbols.
fn to_vec(&self) -> Vec<Sym>
[src]
Parse all symbols into a vector.
Trait Implementations
impl<'a> Default for Symtab<'a>
[src]
impl<'a> Debug for Symtab<'a>
[src]
impl<'a, 'b> IntoIterator for &'b Symtab<'a>
[src]
type Item = <SymIterator<'a> as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = SymIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more