ZBitReaderLE Class Reference

ZBitReaderLE reads a bitstream from a ZStreamR or from memory in increments of 1 to 32 bits . More...

#include <ZBitStream.h>

List of all members.

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.


Detailed Description

ZBitReaderLE reads a bitstream from a ZStreamR or from memory in increments of 1 to 32 bits .

See also:
ZBitReaderLE


Member Function Documentation

bool ZBitReaderLE::ReadBits ( const ZStreamR iStream,
size_t  iCountBits,
uint32 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.)


The documentation for this class was generated from the following files:
Generated on Thu Jul 26 11:22:00 2007 for ZooLib by  doxygen 1.4.7