Qore Programming Language Reference Manual 2.3.0
Loading...
Searching...
No Matches
Compression Stream Transformations

Variables

const Qore::COMPRESSION_ALG_BROTLI = str(CompressionTransforms::ALG_BROTLI)
 Identifies the Brotli compression algorithm (RFC 7932)
 
const Qore::COMPRESSION_ALG_BZIP2 = str(CompressionTransforms::ALG_BZIP2)
 Identifies the bzip2 algorithm
 
const Qore::COMPRESSION_ALG_GZIP = str(CompressionTransforms::ALG_GZIP)
 Identifies the GZIP Format (RFC 1952)
 
const Qore::COMPRESSION_ALG_LZ4 = str(CompressionTransforms::ALG_LZ4)
 Identifies the LZ4 compression algorithm.
 
const Qore::COMPRESSION_ALG_ZLIB = str(CompressionTransforms::ALG_ZLIB)
 Identifies the ZLIB Compressed Data Format (RFC 1950)
 
const Qore::COMPRESSION_ALG_ZSTD = str(CompressionTransforms::ALG_ZSTD)
 Identifies the Zstandard compression algorithm (RFC 8878)
 

Detailed Description

The following Transform constants can be used with TransformInputStream and TransformOutputStream to transform stream data

Example:
Qore::FileOutputStream of("my-file.txt");
This class implements the OutputStream interface for writing bytes to a file.
Definition QC_FileOutputStream.dox.h:28
This class implements the OutputStream interface for writing bytes to another OutputStream while appl...
Definition QC_TransformOutputStream.dox.h:17
const COMPRESSION_ALG_BZIP2
Identifies the bzip2 algorithm
Definition ql_compression.dox.h:787
Transform get_decompressor(string alg)
Returns a Transform object for decompressing data using the given algorithm for use with TransformInp...
list< auto > list(...)
Returns a list of the arguments passed at the top level.
See also
Cryptographic Stream Transformations
Since
Qore 0.8.13

Variable Documentation

◆ COMPRESSION_ALG_BROTLI

const Qore::COMPRESSION_ALG_BROTLI = str(CompressionTransforms::ALG_BROTLI)

Identifies the Brotli compression algorithm (RFC 7932)

Since
Qore 2.1

◆ COMPRESSION_ALG_LZ4

const Qore::COMPRESSION_ALG_LZ4 = str(CompressionTransforms::ALG_LZ4)

Identifies the LZ4 compression algorithm.

Note
LZ4 does not store the original size in the compressed data, so decompression requires either a max_output_size parameter or knowledge of the original size.
Since
Qore 2.1

◆ COMPRESSION_ALG_ZSTD

const Qore::COMPRESSION_ALG_ZSTD = str(CompressionTransforms::ALG_ZSTD)

Identifies the Zstandard compression algorithm (RFC 8878)

Since
Qore 2.1