Decompress a chunk, returning newly-available data. Some data may be buffered for later processing; `flush` must be called when there is no more input data to ensure that all data was processed. If ``max_length`` is given, some input data may be left over in
(self, value: bytes, max_length: int = 0)
| 79 | self.decompressobj = zlib.decompressobj(16 + zlib.MAX_WBITS) |
| 80 | |
| 81 | def decompress(self, value: bytes, max_length: int = 0) -> bytes: |
| 82 | """Decompress a chunk, returning newly-available data. |
| 83 | |
| 84 | Some data may be buffered for later processing; `flush` must |
| 85 | be called when there is no more input data to ensure that |
| 86 | all data was processed. |
| 87 | |
| 88 | If ``max_length`` is given, some input data may be left over |
| 89 | in ``unconsumed_tail``; you must retrieve this value and pass |
| 90 | it back to a future call to `decompress` if it is not empty. |
| 91 | """ |
| 92 | return self.decompressobj.decompress(value, max_length) |
| 93 | |
| 94 | @property |
| 95 | def unconsumed_tail(self) -> bytes: |