A lzma implementation of the Compressor interface.
More...
#include <Compressor.h>
A lzma implementation of the Compressor interface.
| trippingcyril::LZMACompressor::LZMACompressor |
( |
Writer * |
pWriter, |
|
|
uint32_t |
preset = 6, |
|
|
lzma_check |
check_type = LZMA_CHECK_CRC64 |
|
) |
| |
General constructor
- Parameters
-
| pWriter | The underlying writer to write the output to |
| preset | The level of compression, should be between 1 and 9 or LZMA_PRESET_EXTREME |
| check_type | The type of checks the algorithm should apply, see the lzma docs |
- Exceptions
-
| std::runtime_error | In case initializing liblzma goes wrong |
| virtual trippingcyril::LZMACompressor::~LZMACompressor |
( |
| ) |
|
|
virtual |
| int trippingcyril::LZMACompressor::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: