MADARA
3.4.1
|
Compresses with LZ4. More...
#include <LZ4BufferFilter.h>
Public Member Functions | |
virtual | ~LZ4BufferFilter ()=default |
Destructor. More... | |
virtual int | decode (char *source, int size, int max_size) const |
Decodes the buffer in place using LZ4 decompression. More... | |
virtual int | encode (char *source, int size, int max_size) const |
Encodes the buffer in place using LZ4 compression. More... | |
virtual std::string | get_id (void) |
Gets the id of the filter. More... | |
virtual uint32_t | get_version (void) |
Gets the version of the filter. More... | |
Public Attributes | |
int | buffer_size = 10000000 |
the size of the decompress buffer (max size) More... | |
Compresses with LZ4.
Definition at line 27 of file LZ4BufferFilter.h.
|
virtualdefault |
Destructor.
|
virtual |
Decodes the buffer in place using LZ4 decompression.
source | the source and destination buffer |
size | the amount of data in the buffer in bytes |
max_size | the amount of bytes the buffer can hold |
Implements madara::filters::BufferFilter.
Definition at line 32 of file LZ4BufferFilter.cpp.
|
virtual |
Encodes the buffer in place using LZ4 compression.
source | the source and destination buffer |
size | the amount of data in the buffer in bytes |
max_size | the amount of bytes the buffer can hold |
Implements madara::filters::BufferFilter.
Definition at line 10 of file LZ4BufferFilter.cpp.
|
virtual |
Gets the id of the filter.
This is used in the serialization process for transports and checkpoints to identify which filter is used.
Implements madara::filters::BufferFilter.
Definition at line 54 of file LZ4BufferFilter.cpp.
|
virtual |
Gets the version of the filter.
Implements madara::filters::BufferFilter.
Definition at line 59 of file LZ4BufferFilter.cpp.
int madara::filters::LZ4BufferFilter::buffer_size = 10000000 |
the size of the decompress buffer (max size)
Definition at line 66 of file LZ4BufferFilter.h.