Qore Programming Language Reference Manual  1.0.8
ql_compression.dox.h
1 
3 namespace Qore {
7 
9 
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 
152 Transform get_compressor(string alg, int level = COMPRESSION_LEVEL_DEFAULT);
153 
155 
169 Transform get_decompressor(string alg);
170 
172 
184 
186 
190 nothing gunzip_to_binary();
191 
193 
205 string gunzip_to_string(binary bin, *string encoding);
206 
208 
212 nothing gunzip_to_string();
213 
215 
230 binary gzip(string str, int level = Z_DEFAULT_COMPRESSION);
231 
233 
246 binary gzip(binary bin, int level = Z_DEFAULT_COMPRESSION);
247 
249 
253 nothing gzip();
254 
256 
268 
270 
274 nothing uncompress_to_binary();
275 
277 
289 string uncompress_to_string(binary bin, *string encoding);
290 
292 
296 nothing uncompress_to_string();
297 
299 }
300 
302 namespace Qore {
305 
314 }
315 
317 namespace Qore {
332 
334  const COMPRESSION_ALG_BZIP2 = str(CompressionTransforms::ALG_BZIP2);
337  const COMPRESSION_ALG_GZIP = str(CompressionTransforms::ALG_GZIP);
339  const COMPRESSION_ALG_ZLIB = str(CompressionTransforms::ALG_ZLIB);
341 }
Transform get_decompressor(string alg)
Returns a Transform object for decompressing data using the given algorithm for use with TransformInp...
Transform get_compressor(string alg, int level=COMPRESSION_LEVEL_DEFAULT)
Returns a Transform object for compressing data using the given algorithm for use with TransformInput...
const BZ2_DEFAULT_COMPRESSION
gives the default compression level for the bzip2() function, providing a trade-off between compressi...
Definition: ql_compression.dox.h:308
const COMPRESSION_ALG_GZIP
Identifies the GZIP Format (RFC 1952)
Definition: ql_compression.dox.h:337
const COMPRESSION_ALG_ZLIB
Identifies the ZLIB Compressed Data Format (RFC 1950)
Definition: ql_compression.dox.h:339
binary binary()
Always returns an empty binary object (of zero length)
const COMPRESSION_LEVEL_DEFAULT
Identifies the default compression level appropriate for given algorithm.
Definition: ql_compression.dox.h:310
string bunzip2_to_string(binary bin, *string encoding)
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a string...
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...
binary bunzip2_to_binary(binary bin)
Uncompresses the given data with the bzip2 algorithm and returns the uncompressed data as a binary ob...
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 ...
string gunzip_to_string(binary bin, *string encoding)
Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns...
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:312
const COMPRESSION_ALG_BZIP2
Identifies the bzip2 algorithm
Definition: ql_compression.dox.h:335
binary gunzip_to_binary(binary bin)
Performs zlib-based decompression of data compressed with the "gzip" algorithm (RFC 1952) and returns...
binary uncompress_to_binary(binary bin)
Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and return...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
string uncompress_to_string(binary bin, *string encoding)
Performs zlib-based decompression of data compressed by the "deflate" algorithm (RFC 1951) and return...
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...