pub struct Block {
pub payload_offset: u64,
pub compressed_size: u64,
pub original_size: u64,
pub content_hash: [u8; 32],
}Fields§
§payload_offset: u64Byte offset into the payload section where this block’s data begins.
compressed_size: u64Size of the block after compression.
original_size: u64Size of the block before compression.
content_hash: [u8; 32]BLAKE3 of this block’s decompressed bytes.
Hashing the decompressed form is what lets a random-access reader
verify one block without reassembling the whole entry, which is the
difference between serving a byte of a large file and buffering all
of it. Zero on manifests written before version 2, where the only
available check is the whole-entry hash on Entry.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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