#include "bitstream.h"

class ostringbitstream : public obitstream

This class writes bits of data into an internal string buffer. This class inherits from the obitstream class.

Available since: 2014/02/01 version of C++ library

Constructors
ostringbitstream()  Constructs a new bit stream.
Methods
str()  Retrieves the underlying string of the bit stream.

Constructor detail


ostringbitstream();
Constructs a new bit stream that writes bits into an internal string buffer.

Usage:

ostringbitstream stream;

Method detail


string str();
Retrieves the underlying string of the bit stream.

Usage:

string s = stream.str();