97 void writeSymbol( uint32_t aContext, uint32_t aSymbol,
bool& rEscape );
void WriteF64(double aValue)
void swapBits8(uint32_t &rValue)
changes the ordering of an 8 bit value so that the first 4 bits become the last 4 bits and the last 4...
void WriteU8(uint8_t aValue)
uint32_t m_underflow
stores the number of bits of underflow cause dby the limited range of high and low
void GetBitCount(int32_t &rCount)
Returns the number of bits written.
void WriteU16(uint16_t uValue)
void checkPosition()
Checks that the array allocated for writing is large enough.
void WriteI32(int32_t iValue)
void WriteU32(uint32_t uValue)
std::shared_ptr< DATA_BLOCK > GetDataBlock()
void WriteDataBlock(std::shared_ptr< DATA_BLOCK > b)
uint32_t m_high
high and low are the upper and lower limits on the probability
void WriteF32(float fValue)
void WriteString(const std::string &aStr)
void WriteCompressedU16(uint32_t aContext, uint16_t uValue)
std::vector< uint32_t > m_data
uint32_t m_dataLocalNext
The value of the data after m_dataLocal.
void writeSymbol(uint32_t aContext, uint32_t aSymbol, bool &rEscape)
std::unique_ptr< CONTEXT_MANAGER > m_contextManager
void incrementPosition()
Updates the values of the datablock stored in dataLocal and dataLocalNext to the next values in the d...
void WriteU64(uint64_t uValue)
uint32_t m_dataLocal
The local value of the data corresponding to m_dataPosition.
void WriteCompressedU32(uint32_t aContext, uint32_t uValue)
void writeBit(uint32_t aBit)
bool m_compressed
Indicates if a compressed value was written.
int32_t m_dataBitOffset
The offset into data local that the next write occur.
void WriteCompressedU8(uint32_t aContext, uint8_t uValue)
const int32_t m_dataSizeIncrement