void output_int32(uint32_t n, bool neg)
Writes a string representation of an integer to the buffer
void setStream(std::ostream *s)
Sets or changes the std::ostream to write to.
std::ostream * stream() const
Returns the attached std::ostream object.
Text streaming class that buffers data.
bool empty() const
Returns true iff the buffer is empty
TextStream()
Creates an empty stream object.
static const int INITIAL_CAPACITY
TextStream & operator=(const TextStream &)=delete
std::string str() const
Return the contents of the buffer as a std::string object
~TextStream()
Writes any data that is buffered to the attached std::ostream
void output_double(double d)
TextStream & operator<<(char c)
Adds a character to the stream
void write(const char *buf, size_t len)
Adds a array of character to the stream