<h1>zlib Bindings</h1>

<h2>Synopsis</h2>

<code>(import (data zlib))</code>

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.

<h2>Operations</h2>

<h3>procedure: <code>(compress
<h3>procedure: <code>(compress <i>bytevector</i>

Compresses the given data in zlib format, optionally specifying a desired compression level between 0 and 9.

<h3>procedure: <code>(decompress

Decompress the given data in zlib format.