pub struct FixedHeader {
pub version: u16,
pub file_size: u64,
pub metadata_offset: u64,
pub metadata_length: u64,
pub index_offset: u64,
pub index_length: u64,
pub data_offset: u64,
pub dictionary_offset: u64,
pub dictionary_length: u64,
}Expand description
The 80-byte fixed header’s section geometry, plus the container version that says how to read the index below it.
magic, headerSize and the reserved flags word are checked by
FixedHeader::unpack and written by FixedHeader::pack, so they are
not fields. Whether the offsets are consistent with each other is
crate::decode’s question, not this module’s.
Fields§
§version: u16VERSION or VERSION_V2; nothing else parses.
file_size: u64§metadata_offset: u64§metadata_length: u64§index_offset: u64§index_length: u64§data_offset: u64§dictionary_offset: u64§dictionary_length: u64Implementations§
Trait Implementations§
Source§impl Clone for FixedHeader
impl Clone for FixedHeader
impl Copy for FixedHeader
Source§impl Debug for FixedHeader
impl Debug for FixedHeader
impl Eq for FixedHeader
Source§impl PartialEq for FixedHeader
impl PartialEq for FixedHeader
impl StructuralPartialEq for FixedHeader
Auto Trait Implementations§
impl Forget for FixedHeader
impl Freeze for FixedHeader
impl Move for FixedHeader
impl RefUnwindSafe for FixedHeader
impl Send for FixedHeader
impl Sync for FixedHeader
impl Unpin for FixedHeader
impl UnsafeUnpin for FixedHeader
impl UnwindSafe for FixedHeader
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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