pub struct V2Header {
pub format_version: FormatVersion,
pub compression: BlockCompression,
pub flags: BlockFlags,
pub original_size: u32,
pub compressed_size: u32,
pub checksum: u32,
}Expand description
V2 block header (extended format, 21 bytes)
Layout:
- bytes 0-3: magic “TBL2”
- byte 4: format version
- byte 5: compression type
- byte 6: flags
- bytes 7-10: original size (u32 LE)
- bytes 11-14: compressed size (u32 LE)
- bytes 15-18: CRC32 checksum (u32 LE)
- bytes 19-20: reserved (u16 LE)
Fields§
§format_version: FormatVersion§compression: BlockCompression§flags: BlockFlags§original_size: u32§compressed_size: u32§checksum: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for V2Header
impl RefUnwindSafe for V2Header
impl Send for V2Header
impl Sync for V2Header
impl Unpin for V2Header
impl UnwindSafe for V2Header
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