Qore Programming Language Reference Manual: lib/ql_compression.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
ql_compression.dox.h
1
3 namespace Qore {
8
10
21 binary bunzip2_to_binary(binary bin);
22
24
28 nothing bunzip2_to_binary();
29
31
43 string bunzip2_to_string(binary bin, *string encoding);
44
46
50 nothing bunzip2_to_string();
51
53
66 binary bzip2(binary bin, softint level = BZ2_DEFAULT_COMPRESSION);
67
69
84 binary bzip2(string str, softint level = BZ2_DEFAULT_COMPRESSION);
85
87
91 nothing bzip2();
92
94
109 binary compress(string str, int level = Z_DEFAULT_COMPRESSION);
110
112
127 binary compress(binary bin, int level = Z_DEFAULT_COMPRESSION);
128
130
134 nothing compress();
135
137
148 binary gunzip_to_binary(binary bin);
149
151
155 nothing gunzip_to_binary();
156
158
170 string gunzip_to_string(binary bin, *string encoding);
171
173
177 nothing gunzip_to_string();
178
180
195 binary gzip(string str, int level = Z_DEFAULT_COMPRESSION);
196
198
211 binary gzip(binary bin, int level = Z_DEFAULT_COMPRESSION);
212
214
218 nothing gzip();
219
221
232 binary uncompress_to_binary(binary bin);
233
235
239 nothing uncompress_to_binary();
240
242
254 string uncompress_to_string(binary bin, *string encoding);
255
257
261 nothing uncompress_to_string();
262
264 };
265
267 namespace Qore {
271
273 const BZ2_DEFAULT_COMPRESSION = BZ2_DEFAULT_COMPRESSION;
275 const Z_DEFAULT_COMPRESSION = Z_DEFAULT_COMPRESSION;
277 };
Qore::BZ2_DEFAULT_COMPRESSION
const BZ2_DEFAULT_COMPRESSION
gives the default compression level for the bzip2() function, providing maximum compression (value: 9...
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 "gzip" 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 "gzip" 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 tradeoff bet...
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 "gzip" algorithm (RFC 1952) and returns...
Qore::uncompress_to_binary
binary uncompress_to_binary(binary bin)
Performs zlib-based decompression of data compressed by the "deflate" 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 "deflate" algorithm (RFC 1951) and return...
Qore::compress
binary compress(string str, int level=Z_DEFAULT_COMPRESSION)
Performs zlib-based "deflate" data compression (RFC 1951) and returns a binary object of the compress...