My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CSameIntegerEncoder< VALUE_TYPE > Class Template Reference

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

StringBuilderm_pStream
 
int m_nLastValueCount
 
VALUE_TYPE m_nLastValue
 
bool m_bIsFirst
 

Detailed Description

template<typename VALUE_TYPE>
class ParaEngine::CSameIntegerEncoder< VALUE_TYPE >

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)

Member Function Documentation

§ Finalize()

template<typename VALUE_TYPE >
void ParaEngine::CSameIntegerEncoder< VALUE_TYPE >::Finalize ( )
inline

call this function when last element is added.


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