Skip to main content

header_uncompressed_size

Function header_uncompressed_size 

Source
pub fn header_uncompressed_size(data: &[u8]) -> Option<u64>
Expand description

Peek at the recorded uncompressed size in a header-prefixed blob, without decompressing the payload. Returns None for short or unprefixed inputs (the caller can then fall back to the file length).

Used by header-only size queries (e.g. [ObjectStore::blob_size]) where reading the full blob would dominate. Only the first 9 bytes of the input are consulted.