SyTen
syten::LZ4::Comp_SymFilter Class Reference

Compressing symmetric filter, used by boost::iostreams::symmetric_filter<> More...

#include <lz4_filter.h>

+ Collaboration diagram for syten::LZ4::Comp_SymFilter:

Public Types

typedef char char_type
 Needed for Boost. More...
 

Public Member Functions

void close ()
 Re-initialises the filter. More...
 
 Comp_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 , WroteMagic , WroteClearSize , WroteCompSize }
 Valid states of this filter. More...
 

Private Attributes

DynArray< char > buffer
 Output buffer. More...
 
char * buffer_end
 One past the last byte in buffer which we have to write. More...
 
char * buffer_next
 If status == WroteClearSize: Points to the next char in buffer which has to be written out as soon as there is space left. More...
 
Status status = Status::Init
 Current status of the filter. More...
 

Detailed Description

Compressing symmetric filter, used by boost::iostreams::symmetric_filter<>


The documentation for this class was generated from the following files: