11template<
unsigned int BufferLength,
typename Emitter = std::function<
void(std::
string_view)> >
19 if (c != traits_type::eof())
36 std::streamsize
xsputn(
const char *s, std::streamsize n)
override {
37 for (std::streamsize i = 0; i < n; ++i)
59 std::streamsize
xsputn(
const char *s, std::streamsize n)
override {
int overflow(int c) override
Definition stream.h:56
std::streamsize xsputn(const char *s, std::streamsize n) override
Definition stream.h:59
unsigned int buffer_index
Definition stream.h:51
StringStreamBuffer(Emitter emitter)
Definition stream.h:14
int overflow(int c) override
Definition stream.h:18
std::streamsize xsputn(const char *s, std::streamsize n) override
Definition stream.h:36
Emitter m_emitter
Definition stream.h:50
char buffer[BufferLength]
Definition stream.h:52
void push_back(char c)
Definition stream.h:24
int sync() override
Definition stream.h:42