size_t get_data_size() const
Returns the size of the entire buffer contents.
void clear()
Empties the current buffer contents.
void seek(size_t pos)
Moves the data pointer to the indicated byte position.
const std::string & get_data() const
Returns the entire buffer contents as a string, regardless of the current data pointer.
size_t tell() const
Returns the current data pointer position as a byte offset from the beginning of the stream.