Static Public Member Functions | |
static Buffer | compressBZ2 (const Buffer &uncompr, float factor=1.2, float maxfactor=2.0) |
Does in-memory compression similar to what is done by the UNIX executable bzip2 and returns the result. | |
static Buffer | compressGZ (const Buffer &uncompr, float factor=1.2, float maxfactor=2.0) |
Does in-memory compression similar to what is done by the UNIX executable gzip and returns the result. | |
static Buffer | compressZlib (const Buffer &uncompr, float factor=1.2, float maxfactor=2.0) |
Does in-memory compression similar to what is done by the zlib library and returns the result. | |
static Buffer | uncompressBZ2 (const Buffer &input) |
Does in-memory uncompression similar to what is done by the UNIX executable bunzip2 and returns the result. | |
static Buffer | uncompressGZ (const Buffer &input) |
Does in-memory uncompression similar to what is done by the UNIX executable gunzip and returns the result. | |
static Buffer | uncompressZlib (const Buffer &input) |
Does in-memory uncompression similar to what is done by the zlib library and returns the result. |
static Buffer code::Compression::compressBZ2 | ( | const Buffer & | uncompr, | |
float | factor = 1.2 , |
|||
float | maxfactor = 2.0 | |||
) | [static] |
Does in-memory compression similar to what is done by the UNIX executable bzip2 and returns the result.
The result may be the uncompressed original if insufficient compression is obtained.
uncompr | The data to compress | |
factor | A guess at a compression ratio. 1.2 is a good pessimistic guess (20% more) | |
maxfactor | The compression ratio beyond which we should not try to compress it. |
static Buffer code::Compression::compressGZ | ( | const Buffer & | uncompr, | |
float | factor = 1.2 , |
|||
float | maxfactor = 2.0 | |||
) | [static] |
Does in-memory compression similar to what is done by the UNIX executable gzip and returns the result.
uncompr | The data to compress | |
factor | A guess at a compression ratio. 1.2 is a good pessimistic guess (20% more) | |
maxfactor | The compression ratio beyond which we should not try to compress it. |
static Buffer code::Compression::compressZlib | ( | const Buffer & | uncompr, | |
float | factor = 1.2 , |
|||
float | maxfactor = 2.0 | |||
) | [static] |
Does in-memory compression similar to what is done by the zlib library and returns the result.
uncompr | The data to compress | |
factor | A guess at a compression ratio. 1.2 is a good pessimistic guess (20% more) | |
maxfactor | The compression ratio beyond which we should not try to compress it. |
Does in-memory uncompression similar to what is done by the UNIX executable bunzip2 and returns the result.
input | The data to uncompress |
Does in-memory uncompression similar to what is done by the UNIX executable gunzip and returns the result.
input | The data to uncompress |
Does in-memory uncompression similar to what is done by the zlib library and returns the result.
input | The data to uncompress |