(import (data zlib))
Chez Scheme includes zlib code, but exposes the functionality of the library only through file ports. This module allows the compression and decompression of bytevectors in memory.
(compress bytevector level)
Compresses the given data in zlib format, optionally specifying a desired compression level between 0 and 9.
Decompress the given data in zlib format.