|  | Qore Programming Language Reference Manual
    0.9.3.2
    | 
| Functions | |
| binary | Qore::bunzip2_to_binary (binary bin) | 
| Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a binary object.  More... | |
| nothing | Qore::bunzip2_to_binary () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| string | Qore::bunzip2_to_string (binary bin, *string encoding) | 
| Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a string.  More... | |
| nothing | Qore::bunzip2_to_string () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| binary | Qore::bzip2 (binary bin, softint level=BZ2_DEFAULT_COMPRESSION) | 
| Compresses the given data with the bzip2 algorithm and returns the compressed data as a binary.  More... | |
| binary | Qore::bzip2 (string str, softint level=BZ2_DEFAULT_COMPRESSION) | 
| Compresses the given data with the bzip2 algorithm and returns the compressed data as a binary.  More... | |
| nothing | Qore::bzip2 () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| binary | Qore::compress (string str, int level=Z_DEFAULT_COMPRESSION) | 
| Performs zlib-based "deflate" data compression (RFC 1951) and returns a binary object of the compressed data.  More... | |
| binary | Qore::compress (binary bin, int level=Z_DEFAULT_COMPRESSION) | 
| Performs zlib-based "deflate" data compression (RFC 1951) and returns a binary object of the compressed data.  More... | |
| nothing | Qore::compress () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| Transform | Qore::get_compressor (string alg, int level=COMPRESSION_LEVEL_DEFAULT) | 
| Returns a Transform object for compressing data using the given algorithm for use with TransformInputStream and TransformOutputStream.  More... | |
| Transform | Qore::get_decompressor (string alg) | 
| Returns a Transform object for decompressing data using the given algorithm for use with TransformInputStream and TransformOutputStream.  More... | |
| binary | Qore::gunzip_to_binary (binary bin) | 
| Performs zlib-based decompression of data compressed with the "gzip"algorithm (RFC 1952) and returns a binary object of the uncompressed data.  More... | |
| nothing | Qore::gunzip_to_binary () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| string | Qore::gunzip_to_string (binary bin, *string encoding) | 
| Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns a string of the uncompressed datas.  More... | |
| nothing | Qore::gunzip_to_string () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| binary | Qore::gzip (string str, int level=Z_DEFAULT_COMPRESSION) | 
| Performs zlib-based "gzip" data compression (RFC 1952) and returns a binary object of the compressed data.  More... | |
| binary | Qore::gzip (binary bin, int level=Z_DEFAULT_COMPRESSION) | 
| Performs zlib-based "gzip" data compression (RFC 1952) and returns a binary object of the compressed data.  More... | |
| nothing | Qore::gzip () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| binary | Qore::uncompress_to_binary (binary bin) | 
| Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and returns a binary object of the decompressed data.  More... | |
| nothing | Qore::uncompress_to_binary () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
| string | Qore::uncompress_to_string (binary bin, *string encoding) | 
| Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and returns a string of the decompressed data.  More... | |
| nothing | Qore::uncompress_to_string () | 
| This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.  More... | |
These functions work with compression and decompression
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a binary object.
| bin | the compressed data to decompress | 
| BZIP2-DECOMPRESS-ERROR | the bzip2 library returned an internal error during processing (possibly due to corrupt input data) | 
| nothing Qore::bunzip2_to_binary | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a string.
| bin | the compressed data to decompress | 
| encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed. | 
| BZIP2-DECOMPRESS-ERROR | the bzip2 library returned an internal error during processing (possibly due to corrupt input data) | 
| nothing Qore::bunzip2_to_string | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| binary Qore::bzip2 | ( | binary | bin, | 
| softint | level = BZ2_DEFAULT_COMPRESSION | ||
| ) | 
Compresses the given data with the bzip2 algorithm and returns the compressed data as a binary.
| bin | the data to compress | 
| level | the compression level, must be a value between 1 and 9 inclusive, 1 = the least compression (and taking the least memory), 9 = the most compression (using the most memory). An invalid option passed to this argument will result in a BZLIB2-LEVEL-ERRORexception being raised. | 
| BZLIB2-LEVEL-ERROR | level must be between 1 - 9 | 
| BZIP2-COMPRESS-ERROR | the bzip2 library returned an error during processing | 
| binary Qore::bzip2 | ( | string | str, | 
| softint | level = BZ2_DEFAULT_COMPRESSION | ||
| ) | 
Compresses the given data with the bzip2 algorithm and returns the compressed data as a binary.
Strings are compressed without the trailing null character
| str | the data to compress | 
| level | the compression level, must be a value between 1 and 9 inclusive, 1 = the least compression (and taking the least memory), 9 = the most compression (using the most memory). An invalid option passed to this argument will result in a BZLIB2-LEVEL-ERRORexception being raised. | 
| BZLIB2-LEVEL-ERROR | level must be between 1 - 9 | 
| BZIP2-COMPRESS-ERROR | the bzip2 library returned an error during processing | 
| nothing Qore::bzip2 | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| binary Qore::compress | ( | string | str, | 
| int | level = Z_DEFAULT_COMPRESSION | ||
| ) | 
Performs zlib-based "deflate" data compression (RFC 1951) and returns a binary object of the compressed data.
Note that strings are compressed without the trailing null character.
| str | The string to compress | 
| level | Specifies the compression level; must be an integer between 1 and 9, 9 meaning the highest compression level. The default value Z_DEFAULT_COMPRESSION gives a tradeoff between speed and compression size | 
| ZLIB-LEVEL-ERROR | level must be between 1 - 9 or -1 | 
| ZLIB-ERROR | zlib returned an error while processing | 
| binary Qore::compress | ( | binary | bin, | 
| int | level = Z_DEFAULT_COMPRESSION | ||
| ) | 
Performs zlib-based "deflate" data compression (RFC 1951) and returns a binary object of the compressed data.
Note that strings are compressed without the trailing null character.
| bin | The binary object to compress | 
| level | Specifies the compression level; must be an integer between 1 and 9, 9 meaning the highest compression level. The default value Z_DEFAULT_COMPRESSION gives a tradeoff between speed and compression size | 
| ZLIB-LEVEL-ERROR | level must be between 1 - 9 or -1 | 
| ZLIB-ERROR | zlib returned an error while processing | 
| nothing Qore::compress | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| Transform Qore::get_compressor | ( | string | alg, | 
| int | level = COMPRESSION_LEVEL_DEFAULT | ||
| ) | 
Returns a Transform object for compressing data using the given algorithm for use with TransformInputStream and TransformOutputStream.
| alg | the transformation algorithm; see Compression Stream Transformations for possible values | 
| level | compression level as defined by the algorithm or COMPRESSION_LEVEL_DEFAULT to use the default compression level | 
Returns a Transform object for decompressing data using the given algorithm for use with TransformInputStream and TransformOutputStream.
| alg | the transformation algorithm; see Compression Stream Transformations for possible values | 
Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns a binary object of the uncompressed data. 
| bin | the compressed data to decompress | 
| ZLIB-ERROR | The zlib library returned an error during processing (possibly due to corrupt input data) | 
| nothing Qore::gunzip_to_binary | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns a string of the uncompressed datas.
| bin | the compressed data to decompress | 
| encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed. | 
| ZLIB-ERROR | The zlib library returned an error during processing (possibly due to corrupt input data) | 
| nothing Qore::gunzip_to_string | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
| binary Qore::gzip | ( | string | str, | 
| int | level = Z_DEFAULT_COMPRESSION | ||
| ) | 
Performs zlib-based "gzip" data compression (RFC 1952) and returns a binary object of the compressed data.
Strings are compressed without the trailing null character
| str | the data to compress | 
| level | the compression level, must be a value between 1 and 9 inclusive, 1 = the least compression (and taking the least memory), 9 = the most compression (using the most memory). An invalid option passed to this argument will result in a ZLIB-LEVEL-ERRORexception being raised. | 
| ZLIB-LEVEL-ERROR | level must be between 1 - 9 or -1 | 
| ZLIB-ERROR | The zlib library returned an error during processing (should not normally happen during compression) | 
| binary Qore::gzip | ( | binary | bin, | 
| int | level = Z_DEFAULT_COMPRESSION | ||
| ) | 
Performs zlib-based "gzip" data compression (RFC 1952) and returns a binary object of the compressed data.
| bin | the data to compress | 
| level | the compression level, must be a value between 1 and 9 inclusive, 1 = the least compression (and taking the least memory), 9 = the most compression (using the most memory). An invalid option passed to this argument will result in a ZLIB-LEVEL-ERRORexception being raised. | 
| ZLIB-LEVEL-ERROR | level must be between 1 - 9 or -1 | 
| ZLIB-ERROR | The zlib library returned an error during processing (should not normally happen during compression) | 
| nothing Qore::gzip | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and returns a binary object of the decompressed data.
| bin | the data to decompress | 
| ZLIB-ERROR | The zlib library returned an error during processing (possibly due to corrupt input data) | 
| nothing Qore::uncompress_to_binary | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and returns a string of the decompressed data.
| bin | the compressed data to decompress | 
| encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed. | 
| ZLIB-ERROR | The zlib library returned an error during processing (possibly due to corrupt input data) | 
| nothing Qore::uncompress_to_string | ( | ) | 
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.