#[repr(C)]pub struct IndexHeader {
pub magic: u32,
pub version: u32,
pub flags: u32,
pub dir_count: u32,
pub entry_count: u32,
pub hardlink_ref_count: u32,
pub string_pool_size: u32,
pub checksum: u32,
}Expand description
Index file header (32 bytes, offset 0).
Fields§
§magic: u32Magic bytes (INDEX_MAGIC).
version: u32Wire format version (INDEX_VERSION).
flags: u32Reserved flags (must be 0).
dir_count: u32Number of DirRecord entries.
entry_count: u32Total number of EntryRecord entries across all directories.
hardlink_ref_count: u32Number of HardlinkRef entries.
string_pool_size: u32Total bytes in the string pool.
checksum: u32CRC32C of entire file with this field zeroed.
Trait Implementations§
Source§impl Clone for IndexHeader
impl Clone for IndexHeader
Source§fn clone(&self) -> IndexHeader
fn clone(&self) -> IndexHeader
Returns a duplicate 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 IndexHeader
impl Debug for IndexHeader
impl Copy for IndexHeader
Auto Trait Implementations§
impl Freeze for IndexHeader
impl RefUnwindSafe for IndexHeader
impl Send for IndexHeader
impl Sync for IndexHeader
impl Unpin for IndexHeader
impl UnsafeUnpin for IndexHeader
impl UnwindSafe for IndexHeader
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