MyraMath
Classes | Functions
iosize.h File Reference

Counts up the size (in bytes) of an instance t of type T, that possesses a T::write(OutputStream) method. More...

#include <myramath/io/Streams.h>
#include <myramath/MYRAMATH_EXPORT.h>
#include <cstddef>
Include dependency graph for iosize.h:

Go to the source code of this file.

Classes

class  myra::CountingStream
 An OutputStream that just counts up the size of everything you write() to it. More...
 

Functions

template<class T >
size_t myra::iosize (const T &t)
 Returns the serialized size (in bytes) of a serializable type T.
 

Detailed Description

Counts up the size (in bytes) of an instance t of type T, that possesses a T::write(OutputStream) method.