MemoryOutputStream.getDataSize

size_t getDataSize()

Returns the number of bytes from the start up to including the last byte written in the stream that has not been truncated away.

Returns

the number of bytes written to the stream