Skip to main content

block_byte_offsets

Function block_byte_offsets 

Source
pub fn block_byte_offsets(data: &[u8]) -> Result<Vec<usize>, CodecError>
Expand description

Compute byte offsets for each block in an encoded stream.

Returns a Vec of byte offsets — offsets[i] is the start position of block i within data. O(num_blocks) header scan, no decompression.