[#BufferedWriter] = BufferedWriter :mrdocs: Wrapper that buffers writes to an underlying stream. Requires underlying stream to support write_buffer() method for efficient buffer flushing and obfuscation. == Synopsis Declared in `<streams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename S> class BufferedWriter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BufferedWriter/2constructor.adoc[`BufferedWriter`] [.small]#[constructor]# | Construct a writer over the given destination stream with an internal buffer of `size` bytes. | xref:BufferedWriter/2destructor.adoc[`~BufferedWriter`] [.small]#[destructor]# | Flush any buffered bytes, then destroy the writer. | xref:BufferedWriter/flush.adoc[`flush`] | Write any buffered bytes to the destination stream and reset the buffer. | xref:BufferedWriter/write.adoc[`write`] | Buffer bytes from `src`, flushing to the destination whenever the buffer fills. | xref:BufferedWriter/operator_lshift.adoc[`operator<<`] | Serialize an object through the buffered writer and return this writer. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#