Source wrapper that counts the number of bytes read through it. More...
#include <staticlib/io/counting_source.hpp>
Public Member Functions | |
| counting_source (Source &&src) | |
| Constructor, created source wrapper will own specified source. | |
| counting_source (const counting_source &) | |
| Deleted copy constructor. | |
| counting_source & | operator= (const counting_source &) |
| Deleted copy assignment operator. | |
| counting_source (counting_source &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| counting_source & | operator= (counting_source &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | read (span< char > span) |
| Counting read implementation. | |
| size_t | get_count () |
| Returns number of bytes read through this instance. | |
| Source & | get_source () |
| Underlying source accessor. | |
Source wrapper that counts the number of bytes read through it.
|
inlineexplicit |
Constructor, created source wrapper will own specified source.
| src | input source |
| staticlib::io::counting_source< Source >::counting_source | ( | const counting_source< Source > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Returns number of bytes read through this instance.
|
inline |
Underlying source accessor.
| counting_source& staticlib::io::counting_source< Source >::operator= | ( | const counting_source< Source > & | ) |
Deleted copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Counting read implementation.
| span | buffer span |
1.8.1.2