Reference

std/compression/inflate

std/compression/src/inflate.trb

inflated: DEFLATE read back (RFC 1951), after Mark Adler's puff.c - canonical Huffman codes decoded one bit at a time, which is short and exact rather than fast.

fn inflated

fn inflated(bytes: Bytes): Result<Bytes, CompressionError>

Everything a raw DEFLATE stream holds, which has to end with its last block.