![]() |
Qore Programming Language Reference Manual 2.3.0
|
Functions | |
| binary | Qore::brotli (string str, int quality=BROTLI_DEFAULT_QUALITY) |
| Compresses the given data with the Brotli algorithm (RFC 7932) and returns the compressed data as a binary. | |
| binary | Qore::brotli (binary bin, int quality=BROTLI_DEFAULT_QUALITY) |
| Compresses the given data with the Brotli algorithm (RFC 7932) and returns the compressed data as a binary. | |
| nothing | Qore::brotli () |
| 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::bunzip2_to_binary (binary bin) |
| Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a binary object. | |
| 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. | |
| string | Qore::bunzip2_to_string (binary bin, __7_ string encoding) |
| Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a string. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| binary | Qore::deflate_raw (string str, int level=Z_DEFAULT_COMPRESSION) |
| Performs raw DEFLATE compression without zlib/gzip headers or trailers. | |
| binary | Qore::deflate_raw (binary bin, int level=Z_DEFAULT_COMPRESSION) |
| Performs raw DEFLATE compression without zlib/gzip headers or trailers. | |
| nothing | Qore::deflate_raw () |
| 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. | |
| Transform | Qore::get_decompressor (string alg) |
| Returns a Transform object for decompressing data using the given algorithm for use with TransformInputStream and TransformOutputStream. | |
| 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. | |
| 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. | |
| string | Qore::gunzip_to_string (binary bin, __7_ string encoding) |
| Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns a string of the uncompressed datas. | |
| 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. | |
| 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. | |
| 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. | |
| binary | Qore::inflate_raw_to_binary (binary bin) |
| Performs raw DEFLATE decompression and returns a binary object of the decompressed data. | |
| nothing | Qore::inflate_raw_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. | |
| string | Qore::inflate_raw_to_string (binary bin, __7_ string encoding) |
| Performs raw DEFLATE decompression and returns a string of the decompressed data. | |
| nothing | Qore::inflate_raw_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::lz4 (string str, int acceleration=1) |
| Compresses the given data with the LZ4 algorithm and returns the compressed data as a binary. | |
| binary | Qore::lz4 (binary bin, int acceleration=1) |
| Compresses the given data with the LZ4 algorithm and returns the compressed data as a binary. | |
| nothing | Qore::lz4 () |
| 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::unbrotli_to_binary (binary bin) |
| Decompresses the given data with the Brotli algorithm (RFC 7932) and returns the decompressed data as a binary object. | |
| nothing | Qore::unbrotli_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. | |
| string | Qore::unbrotli_to_string (binary bin, __7_ string encoding) |
| Decompresses the given data with the Brotli algorithm (RFC 7932) and returns the decompressed data as a string. | |
| nothing | Qore::unbrotli_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::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. | |
| 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. | |
| string | Qore::uncompress_to_string (binary bin, __7_ string encoding) |
| Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and returns a string of the decompressed 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. | |
| binary | Qore::unlz4_to_binary (binary bin, int max_output_size=0) |
| Decompresses the given data with the LZ4 algorithm and returns the decompressed data as a binary object. | |
| nothing | Qore::unlz4_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. | |
| string | Qore::unlz4_to_string (binary bin, int max_output_size=0, __7_ string encoding) |
| Decompresses the given data with the LZ4 algorithm and returns the decompressed data as a string. | |
| nothing | Qore::unlz4_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::unzstd_to_binary (binary bin) |
| Decompresses the given data with the Zstandard algorithm (RFC 8878) and returns the decompressed data as a binary object. | |
| nothing | Qore::unzstd_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. | |
| string | Qore::unzstd_to_string (binary bin, __7_ string encoding) |
| Decompresses the given data with the Zstandard algorithm (RFC 8878) and returns the decompressed data as a string. | |
| nothing | Qore::unzstd_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::zstd (string str, int level=3) |
| Compresses the given data with the Zstandard algorithm (RFC 8878) and returns the compressed data as a binary. | |
| binary | Qore::zstd (binary bin, int level=3) |
| Compresses the given data with the Zstandard algorithm (RFC 8878) and returns the compressed data as a binary. | |
| nothing | Qore::zstd () |
| 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. | |
These functions work with compression and decompression
| nothing Qore::brotli | ( | ) |
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::brotli | ( | binary | bin, |
| int | quality = BROTLI_DEFAULT_QUALITY |
||
| ) |
Compresses the given data with the Brotli algorithm (RFC 7932) and returns the compressed data as a binary.
| bin | the data to compress |
| quality | the compression quality level, must be a value between 0 and 11 inclusive, 0 = the least compression (and fastest), 11 = the most compression (using the most memory and time). An invalid option passed to this argument will result in a BROTLI-LEVEL-ERROR exception being raised. |
| BROTLI-LEVEL-ERROR | quality must be between 0 - 11 or -1 |
| BROTLI-ERROR | the Brotli library returned an error during processing |
| binary Qore::brotli | ( | string | str, |
| int | quality = BROTLI_DEFAULT_QUALITY |
||
| ) |
Compresses the given data with the Brotli algorithm (RFC 7932) and returns the compressed data as a binary.
Strings are compressed without the trailing null character
| str | the data to compress |
| quality | the compression quality level, must be a value between 0 and 11 inclusive, 0 = the least compression (and fastest), 11 = the most compression (using the most memory and time). An invalid option passed to this argument will result in a BROTLI-LEVEL-ERROR exception being raised. |
| BROTLI-LEVEL-ERROR | quality must be between 0 - 11 or -1 |
| BROTLI-ERROR | the Brotli library returned an error during processing |
| 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 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_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.
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::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::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-ERROR exception 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-ERROR exception being raised. |
| BZLIB2-LEVEL-ERROR | level must be between 1 - 9 |
| BZIP2-COMPRESS-ERROR | the bzip2 library returned an error during 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.
| 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 |
| 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 |
| nothing Qore::deflate_raw | ( | ) |
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::deflate_raw | ( | binary | bin, |
| int | level = Z_DEFAULT_COMPRESSION |
||
| ) |
Performs raw DEFLATE compression without zlib/gzip headers or trailers.
This is the raw DEFLATE format as specified in RFC 1951, without the zlib header/trailer from RFC 1950 or gzip header/trailer from RFC 1952.
This is used by the WebSocket permessage-deflate extension (RFC 7692).
| 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 |
| binary Qore::deflate_raw | ( | string | str, |
| int | level = Z_DEFAULT_COMPRESSION |
||
| ) |
Performs raw DEFLATE compression without zlib/gzip headers or trailers.
This is the raw DEFLATE format as specified in RFC 1951, without the zlib header/trailer from RFC 1950 or gzip header/trailer from RFC 1952.
This is used by the WebSocket permessage-deflate extension (RFC 7692).
| 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 |
| 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 |
| 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 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_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.
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::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.
| 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-ERROR exception 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 | ( | 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-ERROR exception 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::inflate_raw_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 raw DEFLATE decompression and returns a binary object of the decompressed data.
This decompresses data in raw DEFLATE format as specified in RFC 1951, without the zlib header/trailer from RFC 1950 or gzip header/trailer from RFC 1952.
This is used by the WebSocket permessage-deflate extension (RFC 7692).
| bin | the compressed data to decompress (in raw DEFLATE format) |
| ZLIB-ERROR | The zlib library returned an error during processing (possibly due to corrupt input data) |
| nothing Qore::inflate_raw_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.
Performs raw DEFLATE decompression and returns a string of the decompressed data.
This decompresses data in raw DEFLATE format as specified in RFC 1951, without the zlib header/trailer from RFC 1950 or gzip header/trailer from RFC 1952.
This is used by the WebSocket permessage-deflate extension (RFC 7692).
| bin | the compressed data to decompress (in raw DEFLATE format) |
| 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::lz4 | ( | ) |
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.
Compresses the given data with the LZ4 algorithm and returns the compressed data as a binary.
| bin | the data to compress |
| acceleration | the acceleration factor for faster compression at the cost of compression ratio, must be a value between 1 and 65537 inclusive, 1 = best compression ratio (default), higher values = faster compression but larger output. An invalid option passed to this argument will result in a LZ4-ACCELERATION-ERROR exception being raised. |
| LZ4-ACCELERATION-ERROR | acceleration must be between 1 - 65537 |
| LZ4-ERROR | the LZ4 library returned an error during processing |
Compresses the given data with the LZ4 algorithm and returns the compressed data as a binary.
Strings are compressed without the trailing null character.
| str | the data to compress |
| acceleration | the acceleration factor for faster compression at the cost of compression ratio, must be a value between 1 and 65537 inclusive, 1 = best compression ratio (default), higher values = faster compression but larger output. An invalid option passed to this argument will result in a LZ4-ACCELERATION-ERROR exception being raised. |
| LZ4-ACCELERATION-ERROR | acceleration must be between 1 - 65537 |
| LZ4-ERROR | the LZ4 library returned an error during processing |
| nothing Qore::unbrotli_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.
Decompresses the given data with the Brotli algorithm (RFC 7932) and returns the decompressed data as a binary object.
| bin | the compressed data to decompress |
| BROTLI-ERROR | the Brotli library returned an internal error during processing (possibly due to corrupt input data) |
| nothing Qore::unbrotli_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.
Decompresses the given data with the Brotli algorithm (RFC 7932) and returns the decompressed 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. |
| BROTLI-ERROR | the Brotli library returned an internal 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 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_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.
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::unlz4_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.
Decompresses the given data with the LZ4 algorithm and returns the decompressed data as a binary object.
| bin | the compressed data to decompress |
| max_output_size | the maximum size of the decompressed output (default: 0 = estimate from input size) |
| LZ4-ERROR | the LZ4 library returned an internal error during processing (possibly due to corrupt input data or buffer too small) |
| nothing Qore::unlz4_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.
Decompresses the given data with the LZ4 algorithm and returns the decompressed data as a string.
| bin | the compressed data to decompress |
| max_output_size | the maximum size of the decompressed output (default: 0 = estimate from input size) |
| encoding | the character encoding tag for the string return value; if not present, the default character encoding is assumed. |
| LZ4-ERROR | the LZ4 library returned an internal error during processing (possibly due to corrupt input data or buffer too small) |
| nothing Qore::unzstd_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.
Decompresses the given data with the Zstandard algorithm (RFC 8878) and returns the decompressed data as a binary object.
| bin | the compressed data to decompress |
| ZSTD-ERROR | the Zstd library returned an internal error during processing (possibly due to corrupt input data) |
| nothing Qore::unzstd_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.
Decompresses the given data with the Zstandard algorithm (RFC 8878) and returns the decompressed 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. |
| ZSTD-ERROR | the Zstd library returned an internal error during processing (possibly due to corrupt input data) |
| nothing Qore::zstd | ( | ) |
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.
Compresses the given data with the Zstandard algorithm (RFC 8878) and returns the compressed data as a binary.
| bin | the data to compress |
| level | the compression level, must be a value between 1 and ZSTD_MAX_LEVEL (typically 22) inclusive, 1 = the least compression (and fastest), ZSTD_MAX_LEVEL = the most compression (using the most memory and time). An invalid option passed to this argument will result in a ZSTD-LEVEL-ERROR exception being raised. |
| ZSTD-LEVEL-ERROR | level must be between 1 - ZSTD_MAX_LEVEL or -1 |
| ZSTD-ERROR | the Zstd library returned an error during processing |
Compresses the given data with the Zstandard algorithm (RFC 8878) 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 ZSTD_MAX_LEVEL (typically 22) inclusive, 1 = the least compression (and fastest), ZSTD_MAX_LEVEL = the most compression (using the most memory and time). An invalid option passed to this argument will result in a ZSTD-LEVEL-ERROR exception being raised. |
| ZSTD-LEVEL-ERROR | level must be between 1 - ZSTD_MAX_LEVEL or -1 |
| ZSTD-ERROR | the Zstd library returned an error during processing |