Source wrapper that copies all the data read from it into the sink specified on construction. More...
#include <staticlib/io/copying_source.hpp>
Public Member Functions | |
| copying_source (Source &&src, Sink &&sink) | |
| Constructor, created source wrapper will own specified source and sink. | |
| copying_source (const copying_source &) | |
| Deleted copy constructor. | |
| copying_source & | operator= (const copying_source &) |
| Deleted copy assignment operator. | |
| copying_source (copying_source &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| copying_source & | operator= (copying_source &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | read (span< char > span) |
| Read implementation with additional copy to the sink specified on construction. | |
| std::streamsize | flush () |
| Flushes copy sink. | |
| Source & | get_source () |
| Underlying source accessor. | |
| Sink & | get_sink () |
| Underlying copy sink accessor. | |
Source wrapper that copies all the data read from it into the sink specified on construction.
|
inline |
Constructor, created source wrapper will own specified source and sink.
| src | input source |
| sink | sink for data copy |
| staticlib::io::copying_source< Source, Sink >::copying_source | ( | const copying_source< Source, Sink > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Flushes copy sink.
|
inline |
Underlying copy sink accessor.
|
inline |
Underlying source accessor.
| copying_source& staticlib::io::copying_source< Source, Sink >::operator= | ( | const copying_source< Source, Sink > & | ) |
Deleted copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Read implementation with additional copy to the sink specified on construction.
| span | buffer span |
1.8.1.2