ZBitReaderBE Class Reference

ZBitReaderBE 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

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

See also:
ZBitWriterBE


Member Function Documentation

bool ZBitReaderBE::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 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.)


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