2011-may-17 Fixed "version 400" problem
Translated doc.txt to doc.scrbl (JBC)
2009-feb-6 Port to 4xx.
Added support for mac os x.
2007-feb-17 First release.
This library provides bindings to the general purpose compression library zlib written by Jean-loup Gailly and Mark Adler.
For convenience for Windows users, the dll-file zlib1.dll is included with this PLaneT package.
Note, that gzip-files are already supported in file/gzip and file/gunzip. However, as of 2011-04, those libraries don’t support the ADLER32 checksum, and therefore cannot be used to write zlib-encoded streams. This library therefore provides the easiest way to compress data terminated by an ADLER32 checksum.
On Mac and Unix download zlib, if you get an error message from the above.
> (define in (open-input-gz-file (string->path "fooo.gz"))) > (read-bytes 9 in) #"123344445" > (close-input-port in)
> (define out (open-output-gz-file "fooo.gz" #:replace #t)) > (write-bytes #"123" out) > (write-bytes #"344445" out) > (close-output-port out)
|compressed : bytes?|
|expanded-length : exact-nonnegative-integer?|
Keywords: _compression_ _decompression_ _gzip_ _gz_ _zlib_