Flushes the decoder. Should only be called if the decoder is actually being used.
(self)
| 654 | return data |
| 655 | |
| 656 | def _flush_decoder(self) -> bytes: |
| 657 | """ |
| 658 | Flushes the decoder. Should only be called if the decoder is actually |
| 659 | being used. |
| 660 | """ |
| 661 | if self._decoder: |
| 662 | return self._decoder.decompress(b"") + self._decoder.flush() |
| 663 | return b"" |
| 664 | |
| 665 | # Compatibility methods for `io` module |
| 666 | def readinto(self, b: bytearray | memoryview[int]) -> int: |
no test coverage detected