pub struct V1Header {
pub compression: BlockCompression,
pub original_size: u32,
pub compressed_size: u32,
pub checksum: u32,
}Expand description
V1 block header (original format, 17 bytes)
Layout:
- bytes 0-3: magic “TBLK”
- byte 4: compression type
- bytes 5-8: original size (u32 LE)
- bytes 9-12: compressed size (u32 LE)
- bytes 13-16: CRC32 checksum (u32 LE)
Fields§
§compression: BlockCompression§original_size: u32§compressed_size: u32§checksum: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for V1Header
impl RefUnwindSafe for V1Header
impl Send for V1Header
impl Sync for V1Header
impl Unpin for V1Header
impl UnwindSafe for V1Header
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