Input bit stream class.
More...
#include <bitStream.hpp>
|
typedef unsigned | IoState |
| The type used for the error state for a stream. More...
|
|
typedef unsigned long long | Size |
| An unsigned integral type (used for sizes/counts). More...
|
|
typedef long long | Offset |
| A signed integral type (used for differences). More...
|
|
◆ IoState
The type used for the error state for a stream.
◆ Offset
A signed integral type (used for differences).
◆ Size
An unsigned integral type (used for sizes/counts).
◆ InputBitStream() [1/2]
SPL::InputBitStream::InputBitStream |
( |
| ) |
|
Create a bit stream that is not initially bound to any (character) stream.
◆ InputBitStream() [2/2]
SPL::InputBitStream::InputBitStream |
( |
std::istream & |
in | ) |
|
Create a bit stream that reads data from the specified (character) stream.
◆ ~InputBitStream()
SPL::InputBitStream::~InputBitStream |
( |
| ) |
|
◆ align()
void SPL::InputBitStream::align |
( |
| ) |
|
Force byte-alignment of the bit stream.
The bit stream position is moved forward to the nearest byte (i.e., multiple of 8 bits) boundary.
◆ dump()
void SPL::InputBitStream::dump |
( |
std::ostream & |
out | ) |
const |
Dump the internal state of the bit stream to a (character) stream for debugging purposes.
◆ getBits()
long SPL::InputBitStream::getBits |
( |
int |
numBits | ) |
|
Read the specified number of bits from the bit stream.
The bits that are read from the bit stream are assigned to the returned integer value in most-significant to least-significant order.
◆ getInput()
std::istream* SPL::InputBitStream::getInput |
( |
| ) |
const |
Get the (character) stream from which data is read.
◆ setInput()
void SPL::InputBitStream::setInput |
( |
std::istream * |
in | ) |
|
Set the (character) stream from which data is read.
◆ allIoBits
◆ badBit
const IoState SPL::BitStream::badBit = 4 |
|
staticinherited |
◆ eofBit
const IoState SPL::BitStream::eofBit = 1 |
|
staticinherited |
end of file (EOF) reached on input
◆ limitBit
const IoState SPL::BitStream::limitBit = 2 |
|
staticinherited |
read/write limit exceeded
The documentation for this class was generated from the following files: