9#ifndef SQUID_SRC_SBUF_STREAM_H
10#define SQUID_SRC_SBUF_STREAM_H
29 std::ostream(nullptr),
61template <
typename... Args>
write-only std::streambuf that append()s all writes to a given Buffer
SBuf buf()
bytes written so far
SBufStream()
Create an empty SBufStream.
SBuf sink_
buffer for (flushed) bytes written to the stream
SBufStream(const SBuf &aBuf)
SBufStream & clearBuf()
Clear the stream's backing store.
AppendingStreamBuf< SBuf > streamBuffer_
writes raw (post-formatting) bytes to the sink_
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf