Next: The iconv_ostream
class, Previous: The html_ostream
class, Up: Concrete ostream subclasses without styling [Contents][Index]
memory_ostream
classThe memory_ostream
class supports output to an in-memory buffer.
Its type is ‘memory_ostream_t’. It is a subclass of
‘ostream_t’.
It can be instantiated through this function:
Creates an output stream that accumulates the output in a memory buffer.
The class adds the following method:
Returns a pointer to the output accumulated so far and its size. It
stores them in *bufp
and *buflenp
, respectively.
Note: These two return values become invalid when more output is done to the stream or when the stream is freed.