Artifact Content

Artifact fb84a756c050e0c6c9f28c02a4fe98cbf409bfdd:

Wiki page [(data zlib)] by murphy 2016-05-21 12:55:29.
D 2016-05-21T12:55:29.715
L (data\szlib)
U murphy
W 654
<h1>zlib Bindings</h1>


<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.


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

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

<h3>procedure: <code>(decompress <i>bytevector</i>)</code></h3>

Decompress the given data in zlib format.

Z da860c4ce441d6c43b7818408a64e70c