MyraMath
|
An OutputStream that just counts up the size of everything you write() to it. More...
#include <iosize.h>
Public Member Functions | |
CountingStream () | |
Constructor, initializes size() = 0. | |
virtual void | write_binary (const char *p, size_t n) |
Accumulates n, but doesn't actually serialize anything. | |
size_t | size () |
Returns total size. | |
![]() | |
template<class T > | |
void | write (const T &t) |
An OutputStream that just counts up the size of everything you write() to it.