pub struct GnuHashHeader {
pub nbucket: u32,
pub table_start_idx: u32,
pub nbloom: u32,
pub nshift: u32,
}
Expand description
Header at the start of a GNU extension Hash Table section of type SHT_GNU_HASH.
Fields§
§nbucket: u32
§table_start_idx: u32
The symbol table index of the first symbol in the hash table. (GNU hash sections omit symbols at the start of the table that wont be looked up)
nbloom: u32
The number of words in the bloom filter. (must be a non-zero power of 2)
nshift: u32
The bit shift count for the bloom filter.
Trait Implementations§
Source§impl Clone for GnuHashHeader
impl Clone for GnuHashHeader
Source§fn clone(&self) -> GnuHashHeader
fn clone(&self) -> GnuHashHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GnuHashHeader
impl Debug for GnuHashHeader
Source§impl ParseAt for GnuHashHeader
impl ParseAt for GnuHashHeader
Source§fn parse_at<E: EndianParse>(
endian: E,
_class: Class,
offset: &mut usize,
data: &[u8],
) -> Result<Self, ParseError>
fn parse_at<E: EndianParse>( endian: E, _class: Class, offset: &mut usize, data: &[u8], ) -> Result<Self, ParseError>
Parse this type by using the given endian-awareness and ELF class layout.
This is generic on EndianParse in order to allow users to optimize for
their expectations of data layout. See EndianParse for more details.
Source§fn size_for(_class: Class) -> usize
fn size_for(_class: Class) -> usize
Returns the expected size of the type being parsed for the given ELF class
Source§fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
Checks whether the given entsize matches what we need to parse this type Read more
Source§impl PartialEq for GnuHashHeader
impl PartialEq for GnuHashHeader
impl Eq for GnuHashHeader
impl StructuralPartialEq for GnuHashHeader
Auto Trait Implementations§
impl Freeze for GnuHashHeader
impl RefUnwindSafe for GnuHashHeader
impl Send for GnuHashHeader
impl Sync for GnuHashHeader
impl Unpin for GnuHashHeader
impl UnwindSafe for GnuHashHeader
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