Skip to main content

block_extent

Function block_extent 

Source
pub fn block_extent(footer: &Footer, block: &Block) -> Result<(u64, usize)>
Expand description

Absolute file offset of block’s compressed bytes, checked against the payload region footer declares.

Returns the offset and the compressed length, so the caller can allocate knowing the file can back it.