tudocomp
– The TU Dortmund Compression Framework
RunLengthEncoder.hpp File Reference

Go to the source code of this file.

Classes

class  tdc::RunLengthEncoder
 

Namespaces

 tdc
 Contains the text compression and encoding framework.
 

Functions

template<class char_type >
void tdc::rle_encode (std::basic_istream< char_type > &is, std::basic_ostream< char_type > &os, size_t offset=0)
 Encode a byte-stream with run length encoding each run of the same character is substituted with two occurrences of the same character and the length of the run minus two, encoded in vbyte coding. More...
 
template<class char_type >
void tdc::rle_decode (std::basic_istream< char_type > &is, std::basic_ostream< char_type > &os, size_t offset=0)
 Decodes a run length encoded stream. More...