circuitpython/lib/uzlib
Jim Mussared 32db4c58f7 extmod/moddeflate: Change default window size.
The primary purpose of this commit is to make decompress default to
wbits=15 when the format is gzip (or auto format with gzip detected). The
idea is that someone decompressing a gzip stream should be able to use the
default `deflate.DeflateIO(f)` and it will "just work" for any input
stream, even though it uses a lot of memory.

This is done by making uzlib report gzip files as having wbits set to 15
in their header (where it previously only set the wbits out parameter for
zlib files), and then fixing up the logic in `deflateio_init_read`.

Updates the documentation to match.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-09-01 12:23:37 +10:00
..
adler32.c lib/uzlib: Clean up tinf -> uzlib rename. 2023-07-21 19:29:24 +10:00
crc32.c lib/uzlib: Clean up tinf -> uzlib rename. 2023-07-21 19:29:24 +10:00
defl_static.c lib/uzlib/defl_static: Optimize zlib_start/finish_block. 2023-07-21 19:29:34 +10:00
header.c extmod/moddeflate: Change default window size. 2023-09-01 12:23:37 +10:00
lz77.c lib/uzlib/defl_static: Optimize zlib_start/finish_block. 2023-07-21 19:29:34 +10:00
tinflate.c lib/uzlib: Add a source_read_data var to pass to source_read_cb. 2023-07-21 19:29:34 +10:00
uzlib.h lib/uzlib: Add a source_read_data var to pass to source_read_cb. 2023-07-21 19:29:34 +10:00
uzlib_conf.h lib/uzlib: Move uzlib code from extmod to lib. 2021-07-12 16:36:34 +10:00