[][src]Struct goblin::elf32::gnu_hash::GnuHash

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

A better hash table for the ELF used by GNU systems in GNU-compatible software.

Implementations

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

pub unsafe fn from_raw_table(
    hashtab: &'a [u8],
    dynsyms: &'a [Sym]
) -> Result<Self, &'static str>
[src]

Initialize a GnuHash from a pointer to .hash (or .gnu.hash) section and total number of dynamic symbols.

Safety

This function creates a GnuHash directly from a raw pointer

pub fn find(&self, symbol: &str, dynstrtab: &Strtab) -> Option<&'a Sym>[src]

Given a symbol, a hash of that symbol, a dynamic string table and a dynstrtab to cross-reference names, maybe returns a Sym.

pub fn find_with_hash(
    &self,
    symbol: &str,
    hash: u32,
    dynstrtab: &Strtab
) -> Option<&'a Sym>
[src]

This function will not check if the passed hash is really the hash of symbol

Trait Implementations

impl<'_> Debug for GnuHash<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for GnuHash<'a>

impl<'a> Send for GnuHash<'a>

impl<'a> Sync for GnuHash<'a>

impl<'a> Unpin for GnuHash<'a>

impl<'a> UnwindSafe for GnuHash<'a>

Blanket Implementations

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

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

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

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.