#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 high to low within consecutive bytes. When returned they are ordered from low to high. So the first bit in the stream is the high bit of the first byte, but is returned as bit zero of the low byte of oResult.
void ZBitReaderLE::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.)