Reference¶
Utility functions¶
These functions are implemented on top of the basic zlib stream-oriented functions. To simplify the interface, some default options are assumed (compression level and memory usage).
- compress Function¶
Compress a string.
- Signature:
compress string => (compressed-string)
- Parameters:
string – String to compress. An instance of
<string>
- Values:
compressed-string – An instance of
<string>
- Discussion:
Compress the source string into a new string. If there is a problem in the compression process it raises an error.
- Example:
let compressed = compress("Hello");