All Classes Namespaces Functions Variables Groups Pages
ql_compression.dox.h
namespace Qore {
binary bunzip2_to_binary(binary bin);
nothing bunzip2_to_binary();
string bunzip2_to_string(binary bin, *string encoding);
nothing bunzip2_to_string();
binary bzip2(binary bin, softint level = BZ2_DEFAULT_COMPRESSION);
binary bzip2(string str, softint level = BZ2_DEFAULT_COMPRESSION);
nothing bzip2();
binary compress(string str, int level = Z_DEFAULT_COMPRESSION);
binary compress(binary bin, int level = Z_DEFAULT_COMPRESSION);
nothing compress();
binary gunzip_to_binary(binary bin);
nothing gunzip_to_binary();
string gunzip_to_string(binary bin, *string encoding);
nothing gunzip_to_string();
binary gzip(string str, int level = Z_DEFAULT_COMPRESSION);
binary gzip(binary bin, int level = Z_DEFAULT_COMPRESSION);
nothing gzip();
binary uncompress_to_binary(binary bin);
nothing uncompress_to_binary();
string uncompress_to_string(binary bin, *string encoding);
nothing uncompress_to_string();
};
namespace Qore {
const BZ2_DEFAULT_COMPRESSION = BZ2_DEFAULT_COMPRESSION;
const Z_DEFAULT_COMPRESSION = Z_DEFAULT_COMPRESSION;
};
Qore::BZ2_DEFAULT_COMPRESSION
const BZ2_DEFAULT_COMPRESSION
gives the default compression level for the bzip2() function, providing a trade-off between compressi...
Definition: ql_compression.dox.h:273
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::bunzip2_to_string
string bunzip2_to_string(binary bin, *string encoding)
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a string...
Qore::bzip2
binary bzip2(binary bin, softint level=BZ2_DEFAULT_COMPRESSION)
Compresses the given data with the bzip2 algorithm and returns the compressed data as a binary...
Qore::bunzip2_to_binary
binary bunzip2_to_binary(binary bin)
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a binary ob...
Qore::gzip
binary gzip(string str, int level=Z_DEFAULT_COMPRESSION)
Performs zlib-based &quot;gzip&quot; data compression (RFC 1952) and returns a binary object of the compressed ...
Qore::gunzip_to_string
string gunzip_to_string(binary bin, *string encoding)
Performs zlib-based decompression of data compressed with the &quot;gzip&quot; algorithm (RFC 1952) and returns...
Qore::Z_DEFAULT_COMPRESSION
const Z_DEFAULT_COMPRESSION
gives the default compression level for the compress() and gzip() functions, providing a trade-off be...
Definition: ql_compression.dox.h:275
Qore::gunzip_to_binary
binary gunzip_to_binary(binary bin)
Performs zlib-based decompression of data compressed with the &quot;gzip&quot; algorithm (RFC 1952) and returns...
Qore::uncompress_to_binary
binary uncompress_to_binary(binary bin)
Performs zlib-based decompression of data compressed by the &quot;deflate&quot; algorithm (RFC 1951) and return...
Qore::uncompress_to_string
string uncompress_to_string(binary bin, *string encoding)
Performs zlib-based decompression of data compressed by the &quot;deflate&quot; algorithm (RFC 1951) and return...
Qore::compress
binary compress(string str, int level=Z_DEFAULT_COMPRESSION)
Performs zlib-based &quot;deflate&quot; data compression (RFC 1951) and returns a binary object of the compress...