Tkrzw
|
Complessor implemeted with LZ4. More...
#include <tkrzw_compress.h>
Public Member Functions | |
LZ4Compressor (int32_t acceleration=1) | |
Constructor. More... | |
virtual | ~LZ4Compressor () |
Destructor. More... | |
bool | IsSupported () const override |
Checks whether the implementation is actually supported. More... | |
char * | Compress (const void *buf, size_t size, size_t *sp) override |
Compresses a serial data. More... | |
char * | Decompress (const void *buf, size_t size, size_t *sp) override |
Decompresses a serial data. More... | |
std::unique_ptr< Compressor > | MakeCompressor () const override |
Makes a new Compressor object of the same concrete class. More... | |
![]() | |
virtual | ~Compressor ()=default |
Destructor. More... | |
const std::type_info & | GetType () const |
Gets the type information of the actual class. More... | |
Complessor implemeted with LZ4.
|
explicit |
Constructor.
acceleration | The accelaration level which is 1 or more. Increasing it by 1 means 3-4% speed boost with less compression ratio. |
|
virtual |
Destructor.
|
overridevirtual |
Checks whether the implementation is actually supported.
Implements tkrzw::Compressor.
|
overridevirtual |
Compresses a serial data.
buf | the input buffer. |
size | the size of the input buffer. |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
Because the region of the return value is allocated with the xmalloc function, it should be released with the xfree function.
Implements tkrzw::Compressor.
|
overridevirtual |
Decompresses a serial data.
buf | the input buffer. |
size | the size of the input buffer. |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
Because the region of the return value is allocated with the xmalloc function, it should be released with the xfree function.
Implements tkrzw::Compressor.
|
overridevirtual |
Makes a new Compressor object of the same concrete class.
Implements tkrzw::Compressor.