5 #include <libutl/Encoder.h> 6 #include <libutl/HuffmanEncoder.h> 14 #define LZ_LEN_CODES 28 15 #define LZ_DIST_CODES 30 68 start(mode, stream, owner, level);
71 virtual size_t decode(
byte_t* block,
size_t num);
73 virtual size_t encode(
const byte_t* block,
size_t num);
86 virtual void finishEncoding();
95 void addString(
uint_t pos);
97 void removeString(
uint_t pos);
105 uint_t _prevMatchLen, _prevMatchDist, _prevLiteral;
106 uint_t _matchLen, _matchDist, _literal;
107 bool _matchAvailable;
119 static const uint_t lenBits[LZ_LEN_CODES];
120 static const uint_t distBits[LZ_DIST_CODES];
LZencoder(uint_t mode, Stream *stream, bool owner=true, uint_t level=9)
Constructor.
void deInit()
De-initialize UTL++.
Encoder/decoder abstraction.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
unsigned char byte_t
Unsigned character.
unsigned int uint_t
Unsigned integer.
void init()
Initialize UTL++.