Skip to main content

decompress_by_id

Function decompress_by_id 

Source
pub fn decompress_by_id(
    codec_id: &CodecId,
    data: &[u8],
    uncompressed_size: usize,
) -> Result<Vec<u8>>
Expand description

Decompresses data by dispatching on the CodecId stored in the block footer.

This allows the reader to decompress blocks without requiring a statically known codec — the codec is inferred from the block metadata at read time.