Expand description
Bounded payload reads shared by native format adapters.
Enums§
- Declared
Size Failure - Why an entry’s inflated stream was refused.
Functions§
- read_
bounded - Read through EOF under an actual expanded-byte cap, including a one-byte overrun probe. Does not trust a declared ZIP size.
- read_
declared_ size - Inflate exactly the
sizebytes an entry declares, after theprefixalready read from it. One more byte is requested to confirm that the stream ends there, which is also when the reader checks the CRC. A stream longer or shorter than declared is refused, so the declared size the ratio and budget checks used is the size produced, and the buffer is reserved once at that size.