pub fn decompress_stream<R: Read>(
r: R,
chunk_size: usize,
decompressor: Box<dyn Decompressor>,
) -> impl Iterator<Item = Result<Vec<u8>, CompressionError>>Expand description
Summary: Decompress data read from R in chunk_size blocks, yielding decompressed chunks.
- Respects MAX_CHUNK_SIZE sanity.
- Stateless with respect to frame boundaries (caller controls boundaries).