pub struct GnuHashTable<'data, E: EndianParse> {
pub hdr: GnuHashHeader,
/* private fields */
}
Fields§
§hdr: GnuHashHeader
Implementations§
Source§impl<'data, E: EndianParse> GnuHashTable<'data, E>
impl<'data, E: EndianParse> GnuHashTable<'data, E>
Sourcepub fn new(
endian: E,
class: Class,
data: &'data [u8],
) -> Result<Self, ParseError>
pub fn new( endian: E, class: Class, data: &'data [u8], ) -> Result<Self, ParseError>
Construct a GnuHashTable from given bytes. Keeps a reference to the data for lazy parsing.
Sourcepub fn find(
&self,
name: &[u8],
symtab: &SymbolTable<'data, E>,
strtab: &StringTable<'data>,
) -> Result<Option<(usize, Symbol)>, ParseError>
pub fn find( &self, name: &[u8], symtab: &SymbolTable<'data, E>, strtab: &StringTable<'data>, ) -> Result<Option<(usize, Symbol)>, ParseError>
Use the hash table to find the symbol table entry with the given name.
Trait Implementations§
Auto Trait Implementations§
impl<'data, E> Freeze for GnuHashTable<'data, E>where
E: Freeze,
impl<'data, E> RefUnwindSafe for GnuHashTable<'data, E>where
E: RefUnwindSafe,
impl<'data, E> Send for GnuHashTable<'data, E>where
E: Send,
impl<'data, E> Sync for GnuHashTable<'data, E>where
E: Sync,
impl<'data, E> Unpin for GnuHashTable<'data, E>where
E: Unpin,
impl<'data, E> UnwindSafe for GnuHashTable<'data, E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more