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 UnsafeUnpin 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