Class BufferStreamWriter

Inheritance Relationships

Base Types

  • private std::streambuf

  • public std::ostream

Class Documentation

class BufferStreamWriter : private std::streambuf, public std::ostream

Public Functions

explicit BufferStreamWriter(Buffer &buffer)
inline Buffer get_buffer() const
inline size_t size() const
inline size_t capacity() const

Public Static Attributes

static constexpr size_t INITIAL_CAPACITY = 1024

Protected Functions

std::streambuf::int_type overflow(std::streambuf::int_type ch) override
std::streamsize xsputn(const char *s, std::streamsize n) override
std::streampos seekoff(std::streamoff off, seekdir dir, openmode which) override
std::streampos seekpos(std::streampos pos, openmode which) override