Decompressing symmetric filter, used by boost::iostreams::symmetric_filter<> More...
#include <lz4_filter.h>
Collaboration diagram for syten::LZ4::Decomp_SymFilter:Public Types | |
| typedef char | char_type |
| Needed for Boost. More... | |
Public Member Functions | |
| void | close () |
| Re-initialises the filter. More... | |
| Decomp_SymFilter ()=default | |
| Standard ctor. More... | |
| bool | filter (const char *&src_begin, const char *src_end, char *&out_begin, char *out_end, bool) |
Filters data in [src_begin, src_end) and writes it to [out_begin, out_end). More... | |
Private Types | |
| enum class | Status : char { Init , ReadingMetadata , ReadMetadata , ReadingComprData , ReadComprData } |
| Valid states of this filter. More... | |
Private Attributes | |
| char * | buffer_next |
| If status == ReadCompSize: If src_begin < src_end: Points to the next empty, unused char in i_buffer where we have to write additional data. More... | |
| Size | clear_size {0} |
| Clear-text data size. More... | |
| Size | compr_size {0} |
| Compressed data size. More... | |
| DynArray< char > | i_buffer |
| Input buffer for compressed data. More... | |
| DynArray< char > | o_buffer |
| Output buffer for clear-text data. More... | |
| char * | output_buffer |
| Temporary pointer which points at the beginning of the decompression output space. More... | |
| Status | status = Status::Init |
| Current state of this filter. More... | |
Decompressing symmetric filter, used by boost::iostreams::symmetric_filter<>