memory_ostream class supports output to an in-memory buffer.
Its type is ‘memory_ostream_t’. It is a subclass of
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
Note: These two return values become invalid when more output is done to the stream or when the stream is freed.