Struct goblin::elf64::gnu_hash::GnuHash [−][src]
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]
hashtab: &'a [u8],
dynsyms: &'a [Sym]
) -> Result<Self, &'static str>
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]
&self,
symbol: &str,
hash: u32,
dynstrtab: &Strtab<'_>
) -> Option<&'a Sym>
This function will not check if the passed hash
is really
the hash of symbol
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,