Output 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).
◆ OutputBitStream() [1/2]
SPL::OutputBitStream::OutputBitStream |
( |
| ) |
|
Create a bit stream that is not initially bound to any (character) stream.
◆ OutputBitStream() [2/2]
SPL::OutputBitStream::OutputBitStream |
( |
std::ostream & |
out | ) |
|
Create a bit stream that sends its output to the specified (character) stream.
◆ ~OutputBitStream()
SPL::OutputBitStream::~OutputBitStream |
( |
| ) |
|
◆ align()
void SPL::OutputBitStream::align |
( |
| ) |
|
Align the bit stream output position to the nearest byte boundary.
◆ dump()
void SPL::OutputBitStream::dump |
( |
std::ostream & |
out | ) |
const |
Dump the internal state of the bit stream to the specified (character) stream for debugging purposes.
◆ flush()
void SPL::OutputBitStream::flush |
( |
| ) |
|
Flush any pending output to the underlying (character) stream.
The bit stream is aligned to the nearest byte boundary and any pending output is flushed to the underlying (character) stream.
◆ getOutput()
std::ostream * SPL::OutputBitStream::getOutput |
( |
| ) |
const |
Get the output (character) stream associated with the bit stream.
◆ putBits()
int SPL::OutputBitStream::putBits |
( |
long |
data, |
|
|
int |
numBits |
|
) |
| |
Output the specified number of bits to the bit stream.
This function returns a nonnegative value upon success and a negative value if an error is encountered.
◆ setOutput()
void SPL::OutputBitStream::setOutput |
( |
std::ostream * |
out | ) |
|
Set the output (character) stream associated with the bit stream.
◆ 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: