pub struct SysVHashTable<'data, E: EndianParse> { /* private fields */ }
Implementations§
Source§impl<'data, E: EndianParse> SysVHashTable<'data, E>
This constructs a lazy-parsing type that keeps a reference to the provided data
bytes from which it lazily parses and interprets its contents.
impl<'data, E: EndianParse> SysVHashTable<'data, E>
This constructs a lazy-parsing type that keeps a reference to the provided data bytes from which it lazily parses and interprets its contents.
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 SysVHashTable 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 and hash.
Trait Implementations§
Auto Trait Implementations§
impl<'data, E> Freeze for SysVHashTable<'data, E>where
E: Freeze,
impl<'data, E> RefUnwindSafe for SysVHashTable<'data, E>where
E: RefUnwindSafe,
impl<'data, E> Send for SysVHashTable<'data, E>where
E: Send,
impl<'data, E> Sync for SysVHashTable<'data, E>where
E: Sync,
impl<'data, E> Unpin for SysVHashTable<'data, E>where
E: Unpin,
impl<'data, E> UnwindSafe for SysVHashTable<'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