mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-01-08 06:29:49 +00:00
6559cbc337
This is a little more complex than with the other decompressors, because .dcmp2 has to behave differently when at the byte before EOF. Checking whether this is the case requires lookahead, which is not easy to do with a plain IO stream. Some buffered IO streams provide a peek method for lookahead, but others don't (such as io.BytesIO). There is no standard way to wrap an already buffered IO stream to add a peek method, so we need a custom wrapper class and helper function for this purpose. |
||
---|---|---|
.. | ||
compress | ||
__init__.py | ||
__main__.py | ||
api.py |