Sink wrapper that buffers the output. More...
#include <staticlib/io/buffered_sink.hpp>
Public Member Functions | |
| buffered_sink (Sink &&sink) | |
| Constructor, created sink wrapper will own specified sink. | |
| ~buffered_sink () STATICLIB_NOEXCEPT | |
| Destructor, flushes the buffer before destroy. | |
| buffered_sink (const buffered_sink &) | |
| Deleted copy constructor. | |
| buffered_sink & | operator= (const buffered_sink &) |
| Deleted copy assignment operator. | |
| buffered_sink (buffered_sink &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| buffered_sink & | operator= (buffered_sink &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | write (span< const char > span) |
| Buffered write implementation. | |
| std::streamsize | flush () |
| Flushes the buffer to the destination sink. | |
| Sink & | get_sink () |
| Underlying sink accessor. | |
| std::array< char, buf_size > & | get_buffer () |
| Buffer accessor. | |
Sink wrapper that buffers the output.
|
inlineexplicit |
Constructor, created sink wrapper will own specified sink.
| sink | destination sink to wrap |
|
inline |
Destructor, flushes the buffer before destroy.
| staticlib::io::buffered_sink< Sink, buf_size >::buffered_sink | ( | const buffered_sink< Sink, buf_size > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Flushes the buffer to the destination sink.
|
inline |
Buffer accessor.
|
inline |
Underlying sink accessor.
| buffered_sink& staticlib::io::buffered_sink< Sink, buf_size >::operator= | ( | const buffered_sink< Sink, buf_size > & | ) |
Deleted copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Buffered write implementation.
| span | buffer span |
1.8.1.2