40 void Pack(
unsigned int nValue,
int nBits);
95 void Write(
unsigned int nValue,
unsigned int nBits);
97 unsigned char *mBuffer;
void PackSigned(int nValue, int nBits)
Append the low bits of a signed value in two's complement.
BitStream(void *pBuffer, int nSize)
Construct a stream over a buffer, positioned at the first bit.
void Pack(unsigned int nValue, int nBits)
Append the low bits of a value.
unsigned int GetBitPos() const
Definition bitstream.h:82
bool UnpackBool()
Read the next bit.
void PackBool(int nValue)
Append one bit, the lowest bit of a flag word.
unsigned int Unpack(int nBits)
Read the next bits as an unsigned value.
int UnpackSigned(int nBits)
Read the next bits as a signed value in two's complement.