|
|
class istringbitstream : public ibitstream
This class reads bits of data from string buffers.
This class inherits from the ibitstream class.
Available since: 2014/02/01 version of C++ library
| Constructors | |
| Constructs a new bit stream that reads the bytes of the specified string as its input data. | |
| Methods | |
| Reads a single bit from the bit stream and returns 0 or 1 depending on the bit value. | |
| Sets the underlying string of the bit stream. | |
istringbitstream(string s = "");
Usage:
istringbitstream stream(s);
int readBit();
Usage:
int bit = stream.readBit();
void str(string s);
readBit will read bits from the bytes of this string.
Usage:
stream.str(s);