6 #ifndef MYRAMATH_IO_IOSIZE_H     7 #define MYRAMATH_IO_IOSIZE_H    15 #include <myramath/MYRAMATH_EXPORT.h>    45 template<
class T> 
size_t iosize(
const T& t)
 
CountingStream()
Constructor, initializes size() = 0. 
Definition: iosize.h:26
size_t iosize(const T &t)
Returns the serialized size (in bytes) of a serializable type T. 
Definition: iosize.h:45
Abstraction layer, serializable objects write themselves to these. 
Definition: Streams.h:39
size_t size()
Returns total size. 
Definition: iosize.h:34
virtual void write_binary(const char *p, size_t n)
Accumulates n, but doesn't actually serialize anything. 
Definition: iosize.h:30
An OutputStream that just counts up the size of everything you write() to it. 
Definition: iosize.h:21
Bases classes for binary input/output streams.