|
scclib
Stable Cloud Computing C++ Library
|
Adds byte count to a read stream. More...
#include <rwcounter.h>


Public Member Functions | |
| ReadCounter () | |
| Reads will return 0 until reset. More... | |
| ReadCounter (Reader &) | |
| Chain using a reference. More... | |
| ReadCounter (const std::shared_ptr< Reader > &) | |
| Chain using a shared pointer. | |
| void | read_reset (Reader &) |
| Reset the chained reader. | |
| virtual void | read_reset (const std::shared_ptr< Reader > &) |
| Reset the chained reader. | |
| virtual std::shared_ptr< Reader > | read_shared () const |
| virtual size_t | read (void *, size_t) |
| Read interface. More... | |
| uint64_t | read_count () const |
| void | read_count (uint64_t v) |
| void | read_count_reset () |
| uint64_t | read_calls () const |
| void | read_calls (uint64_t v) |
| void | read_calls_reset () |
Adds byte count to a read stream.
Example from scclib/util/unittest/iohelper.cc
Definition at line 58 of file rwcounter.h.
| ReadCounter::ReadCounter | ( | ) |
| ReadCounter::ReadCounter | ( | Reader & | r | ) |
|
virtual |
Read interface.
Read a block of data to a maximum. Return number of bytes read.
Implements scc::util::Reader.
Definition at line 821 of file iostream.cc.