pub struct HashTable<'data, Elf: FileHeader> { /* private fields */ }
Expand description
A SysV symbol hash table in an ELF file.
Implementations
sourceimpl<'data, Elf: FileHeader> HashTable<'data, Elf>
impl<'data, Elf: FileHeader> HashTable<'data, Elf>
sourcepub fn parse(endian: Elf::Endian, data: &'data [u8]) -> Result<Self>
pub fn parse(endian: Elf::Endian, data: &'data [u8]) -> Result<Self>
Parse a SysV hash table.
data
should be from a SHT_HASH
section, or from a
segment pointed to via the DT_HASH
entry.
The header is read at offset 0 in the given data
.
sourcepub fn symbol_table_length(&self) -> u32
pub fn symbol_table_length(&self) -> u32
Return the symbol table length.
Trait Implementations
Auto Trait Implementations
impl<'data, Elf> RefUnwindSafe for HashTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
impl<'data, Elf> Send for HashTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Sync for HashTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Unpin for HashTable<'data, Elf>
impl<'data, Elf> UnwindSafe for HashTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more