1024jp / GzipSwift

Swift package that enables gzip/gunzip Data using zlib
MIT License
544 stars 134 forks source link

Add support for managing the size of the history buffer #52

Closed eneko closed 2 years ago

eneko commented 2 years ago

Being able to adjust the size of the history buffer is necessary to compress/decompress data in different formats, for example, a stream containing no header/trailer (see table 1 and table 2 on this article).

The changes include a test for decompressing data adjusting the WBITS parameter to -15.

1024jp commented 2 years ago

LGTM. Thank you for the improvement! I'll release this as 5.3.0 soon.