A gzip implementation of the Compressor interface.
More...
#include <Compressor.h>
A gzip implementation of the Compressor interface.
| trippingcyril::GZipCompressor::GZipCompressor |
( |
Writer * |
pWriter, |
|
|
int |
level = 6, |
|
|
int |
memory_level = 8 |
|
) |
| |
General constructor
- Parameters
-
| pWriter | The underlying writer to write the output to |
| level | The compression level |
| memory_level | The internal gzip memory level |
- Exceptions
-
| std::runtime_error | In case initializing zlib goes wrong |
| virtual trippingcyril::GZipCompressor::~GZipCompressor |
( |
| ) |
|
|
virtual |
| int trippingcyril::GZipCompressor::Write |
( |
const char * |
data, |
|
|
size_t |
len |
|
) |
| |
|
overridevirtual |
Feed data into the compressor to compress
- Parameters
-
| data | The actual data to compress |
| len | The length of the data to compress |
- Returns
- Amount of output bytes
Implements trippingcyril::Compressor.
The documentation for this class was generated from the following file: