Libraries
Zlib Source Code
 previous   up   next 

Function Summary
string
zlibDecompress (in string: compressed)
Decompress a string that was compressed with zlib (RFC 1950).
string
zlibCompress (in string: uncompressed)
Compress a string with the zlib (RFC 1950) compression method.

Function Detail

zlibDecompress

const func string: zlibDecompress (in string: compressed)

Decompress a string that was compressed with zlib (RFC 1950). Zlib uses the DEFLATE compression algorithm. DEFLATE uses a combination of the LZ77 algorithm and Huffman coding. In addition to DEFLATE, zlib uses a small header.

Returns:
the uncompressed string.
Raises:
RANGE_ERROR - If compressed is not in zlib format.

zlibCompress

const func string: zlibCompress (in string: uncompressed)

Compress a string with the zlib (RFC 1950) compression method. Zlib uses the DEFLATE compression algorithm. DEFLATE uses a combination of the LZ77 algorithm and Huffman coding. In addition to DEFLATE, zlib uses a small header.

Returns:
the compressed string.


 previous   up   next