#include <PhxBitVector.h>
Public Member Functions | |
| InputStream (const BitVector *bitVector) | |
| Construct the InputStream on top of the given bit vector. | |
| const BitVector & | bitVector (void) const |
| Returns a reference to the bit vector that this stream was constructed on top of. | |
| Bits | readIndex (void) const |
| Gets the position in the bit vector from which the next field will be read. | |
| void | readIndex (Bits readIndex) |
| Sets the position in the bit vector to which the next field will be read. | |
| bool | endOfStream (void) |
| Returns whether the current readIndex is at or beyond the end of the stream. | |
| InputStream & | operator>> (String &s) |
| InputStream & | operator>> (double &s) |
| InputStream & | operator>> (float &s) |
| InputStream & | operator>> (uint64_t &s) |
| InputStream & | operator>> (uint32_t &s) |
| InputStream & | operator>> (uint16_t &s) |
| InputStream & | operator>> (uint8_t &s) |
| InputStream & | operator>> (int64_t &s) |
| InputStream & | operator>> (int32_t &s) |
| InputStream & | operator>> (int16_t &s) |
| InputStream & | operator>> (int8_t &s) |
| InputStream & | operator>> (bool &s) |
Note that this stream is only valid for as long as the pointer to the bit vector supplied to its constructor is valid. The responsibility for the memory pointed to is the client's.
|
|
Construct the InputStream on top of the given bit vector.
|
|
|
Returns whether the current readIndex is at or beyond the end of the stream.
|
|
|
Sets the position in the bit vector to which the next field will be read.
|
1.4.2