OpenEnroth 73e68f7
|
#include <typeinfo>
#include <type_traits>
#include "Utility/Streams/OutputStream.h"
#include "Utility/Streams/InputStream.h"
#include "BinaryExceptions.h"
Classes | |
struct | is_memcopy_serializable< T > |
Macros | |
#define | MM_DECLARE_MEMCOPY_SERIALIZABLE(T) |
Functions | |
template<class T > requires is_memcopy_serializable_v<T> | |
void | serialize (const T &src, OutputStream *dst) |
template<class T > requires is_memcopy_serializable_v<T> | |
void | deserialize (InputStream &src, T *dst) |
Variables | |
template<class T > | |
constexpr bool | is_memcopy_serializable_v = is_memcopy_serializable<T>::value |
#define MM_DECLARE_MEMCOPY_SERIALIZABLE | ( | T | ) |
Invoke this macro for a type to use it with binary serialization functions via simple memory copy.
T | Type to declare as memcopy-serializable. |
void deserialize | ( | InputStream & | src, |
T * | dst | ||
) |
void serialize | ( | const T & | src, |
OutputStream * | dst | ||
) |
|
constexpr |