very low structure to help uncompress data More...
Public Member Functions | |
DeflateStruct (long size, long initSize) | |
constructor More... | |
bool | isEnd () const |
true if we have build of the data More... | |
bool | push (unsigned char c) |
push a new character More... | |
bool | sendDuplicated (int num, int depl) |
send a duplicated part of the data More... | |
bool | treatDelayed (unsigned char c) |
check if there is delayed char, if so treat them More... | |
bool | getBinaryData (librevenge::RVNGBinaryData &dt) const |
return the content of the block in dt More... | |
Protected Attributes | |
long | m_toWrite |
the number of data that we need to write More... | |
std::vector< unsigned char > | m_data |
the resulting data More... | |
std::vector< unsigned char > | m_circQueue |
a circular queue More... | |
size_t | m_circQueuePos |
the position in the circular queue More... | |
int | m_numDelayed |
the number of character delayed More... | |
unsigned char | m_delayedChar |
the delayed character More... | |
Private Member Functions | |
DeflateStruct (DeflateStruct const &orig)=delete | |
DeflateStruct & | operator= (DeflateStruct const &orig)=delete |
very low structure to help uncompress data
|
inline |
constructor
|
privatedelete |
|
inline |
return the content of the block in dt
Referenced by EDocParser::decodeZone().
|
inline |
true if we have build of the data
Referenced by EDocParser::decodeZone().
|
privatedelete |
|
inline |
push a new character
Referenced by EDocParser::decodeZone(), and sendDuplicated().
bool EDocParserInternal::DeflateStruct::sendDuplicated | ( | int | num, |
int | depl | ||
) |
send a duplicated part of the data
Referenced by EDocParser::decodeZone().
bool EDocParserInternal::DeflateStruct::treatDelayed | ( | unsigned char | c | ) |
check if there is delayed char, if so treat them
Referenced by push().
|
protected |
a circular queue
Referenced by push(), and sendDuplicated().
|
protected |
the position in the circular queue
Referenced by push(), and sendDuplicated().
|
protected |
the resulting data
Referenced by DeflateStruct(), getBinaryData(), push(), and treatDelayed().
|
protected |
the delayed character
Referenced by push(), and treatDelayed().
|
protected |
the number of character delayed
Referenced by push(), and treatDelayed().
|
protected |
the number of data that we need to write
Referenced by isEnd(), push(), and treatDelayed().