#include <ZBitStream.h>
Public Member Functions | |
bool | ReadBits (const ZStreamR &iStream, size_t iCountBits, uint32 &oResult) |
Return iCountBits in the low bit positions of oResult. | |
void | ReadBits (const void *iSource, size_t iCountBits, uint32 &oResult, size_t *oCountBytesConsumed) |
Return iCountBits in the low bit positions of oResult. |
Return iCountBits in the low bit positions of oResult.
If there are insufficient bits buffered from previous calls then read additional data from iStream. The bits in the stream are considered to be ordered from low to high within consecutive bytes. So the first bit in the stream is returned as bit zero of the low byte of oResult. Bit zero is that bit representing 1 rather than that representing 128.
void ZBitReaderBE::ReadBits | ( | const void * | iSource, | |
size_t | iCountBits, | |||
uint32 & | oResult, | |||
size_t * | oCountBytesConsumed | |||
) |
Return iCountBits in the low bit positions of oResult.
If there are insufficient bits buffered from previous calls then read additional data from iSource, the number of integral bytes read being returned in oCountBytesConsumed. The bits in the stream are considered to be ordered from low to high within consecutive bytes. So the first byte in memory is returned in the low byte of oResult (this is the same as little endian byte order.)