My Project
|
Author: LiXizhi if the input array contains, many data of the same value. More...
#include <BlockDataCodec.h>
Public Member Functions | |
CSameIntegerEncoder (StringBuilder *pStream) | |
void | Reset () |
void | Append (VALUE_TYPE nValue) |
void | Append (VALUE_TYPE nValue, int nCount) |
void | Finalize () |
call this function when last element is added. More... | |
Public Attributes | |
StringBuilder * | m_pStream |
int | m_nLastValueCount |
VALUE_TYPE | m_nLastValue |
bool | m_bIsFirst |
Author: LiXizhi if the input array contains, many data of the same value.
1,1,1,2,2,2,2,3,3,3,3 is saved as 1,3,2,4,3,4 (value, count, value, count, ... value)
|
inline |
call this function when last element is added.