6 #ifndef _INC_cStreamBit_H
7 #define _INC_cStreamBit_H
12 #include "../GrayLibBase.h"
37 static const short k_SIZE = (256 + 1);
38 static const WORD k_EncoderData[k_SIZE];
44 bool AddBitBranch(
short Value, WORD wCode,
int iBits);
55 return m_iDecoderTree != 0;
57 static size_t GRAYCALL Encode(BYTE* pOutput,
const BYTE* pInput,
size_t inplen);
84 return(m_iDecodeIndex == 0);
88 return(m_iDecodeIndex);
90 int Decode(BYTE* pOutput,
const BYTE* pInput,
size_t nInputSize);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define CHEAPOBJECT_IMPL
Definition: cHeapObject.h:32
Definition: cStreamBit.h:63
void ResetDecoder() noexcept
Definition: cStreamBit.h:77
bool isCompletePacket() const noexcept
Definition: cStreamBit.h:82
cStreamBitDecompress() noexcept
Definition: cStreamBit.h:73
int get_IncompleteSize() const noexcept
Definition: cStreamBit.h:86
Definition: cStreamBit.h:28
short m_iDecoderTree
Definition: cStreamBit.h:41
bool isInitTree() const noexcept
Definition: cStreamBit.h:53
UNITTEST_FRIEND(cStreamBit)
Definition: cSingleton.h:127
Definition: cStreamBit.h:19
short m_nZero
index to branch for bit set.
Definition: cStreamBit.h:23
short m_nOne
index to branch for bit clear.
Definition: cStreamBit.h:24
short m_Value
-1=tree branch, 0-255=character value, 256=PROXY_BRANCH_QTY-1=end
Definition: cStreamBit.h:22