template <size_t BufferSize>

struct LineBuffered

Defined at line 31 of file ../../src/lib/symbolizer-markup/include/lib/symbolizer-markup/line-buffered-sink.h

symbolizer_markup::LineBuffered

<Size

>::Sink wraps another Sink and buffers.

The Sink class is a template within a template so that its template

parameter can be deduced, as in:

`symbolizer_markup::LineBuffered

<kBufSz

>::Sink sink{inner_sink};`

The inner sink is any callable object as taken by symbolizer_markup::Writer,

and the wrapped object has the same callable signature.

The outer template's parameter gives the fixed size of a buffer inside the

Sink object. The inner sink is called with whole lines including '

' at

the end, or with a full buffer that's a partial line because the Writer

produced a line longer than the buffer size (or didn't finish the line

before the Sink object was destroyed).

Public Members

static const size_t kBufferSize

Records