#[repr(C)]pub struct HashEntry {
pub name_1: u32,
pub name_2: u32,
pub locale: u16,
pub platform: u16,
pub block_index: u32,
}Expand description
Hash table entry (16 bytes)
Fields§
§name_1: u32The hash of the full file name (part A)
name_2: u32The hash of the full file name (part B)
locale: u16The language of the file (Windows LANGID)
platform: u16The platform the file is used for (vestigial - always 0 in practice)
block_index: u32Block table index or special value
Implementations§
Source§impl HashEntry
impl HashEntry
Sourcepub const EMPTY_NEVER_USED: u32 = 0xFFFFFFFF
pub const EMPTY_NEVER_USED: u32 = 0xFFFFFFFF
Value indicating the hash entry has never been used
Sourcepub const EMPTY_DELETED: u32 = 0xFFFFFFFE
pub const EMPTY_DELETED: u32 = 0xFFFFFFFE
Value indicating the hash entry was deleted
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Check if this entry was deleted
Sourcepub fn from_bytes(data: &[u8]) -> Result<Self>
pub fn from_bytes(data: &[u8]) -> Result<Self>
Read a hash entry from raw bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashEntry
impl RefUnwindSafe for HashEntry
impl Send for HashEntry
impl Sync for HashEntry
impl Unpin for HashEntry
impl UnwindSafe for HashEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more