![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
Wrapper that buffers writes to an underlying stream. More...
#include <streams.h>
Public Member Functions | |
BufferedWriter (S &stream LIFETIMEBOUND, size_t size=1<< 16) | |
~BufferedWriter () | |
void | flush () |
void | write (std::span< const std::byte > src) |
template<typename T > | |
BufferedWriter & | operator<< (const T &obj) |
Private Attributes | |
S & | m_dst |
DataBuffer | m_buf |
size_t | m_buf_pos {0} |
Wrapper that buffers writes to an underlying stream.
Requires underlying stream to support write_buffer() method for efficient buffer flushing and obfuscation.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |