Sink implementation that wraps a pointer to the "std::streambuf".
More...
#include <staticlib/io/streambuf_sink.hpp>
Detailed Description
Sink implementation that wraps a pointer to the "std::streambuf".
Constructor & Destructor Documentation
| staticlib::io::streambuf_sink::streambuf_sink |
( |
std::streambuf * |
streambuf | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
| streambuf | destination streambuf |
| staticlib::io::streambuf_sink::streambuf_sink |
( |
const streambuf_sink & |
| ) |
|
Deleted copy constructor.
- Parameters
-
| staticlib::io::streambuf_sink::streambuf_sink |
( |
streambuf_sink && |
other | ) |
|
|
inline |
Move constructor.
- Parameters
-
Member Function Documentation
| std::streamsize staticlib::io::streambuf_sink::flush |
( |
| ) |
|
|
inline |
Flushes destination streambuf.
- Returns
- number of bytes flushed
Deleted copy assignment operator.
- Parameters
-
- Returns
- this instance
Move assignment operator.
- Parameters
-
- Returns
- this instance
| std::streamsize staticlib::io::streambuf_sink::write |
( |
span< const char > |
span | ) |
|
|
inline |
Write implementation delegated to the underlying streambuf.
- Parameters
-
- Returns
- number of bytes processed
The documentation for this class was generated from the following file: