Symphony Of Empires
Eng3D::Deser::SerializerMemcpy< T > Struct Template Reference

A serializer optimized to memcpy directly the element into the byte stream use only when the object can be copied without modification (i.e a class full of ints) The elements must have a fixed size for this to work. More...

#include <serializer.hpp>

Public Types

template<bool is_const>
using type = typename CondConstType< is_const, T >::type
 

Static Public Member Functions

template<bool is_serialize>
static void deser_dynamic (Eng3D::Deser::Archive &ar, type< is_serialize > &obj)
 

Detailed Description

template<typename T>
struct Eng3D::Deser::SerializerMemcpy< T >

A serializer optimized to memcpy directly the element into the byte stream use only when the object can be copied without modification (i.e a class full of ints) The elements must have a fixed size for this to work.

Definition at line 162 of file serializer.hpp.

Member Typedef Documentation

◆ type

template<typename T >
template<bool is_const>
using Eng3D::Deser::SerializerMemcpy< T >::type = typename CondConstType<is_const, T>::type

Definition at line 164 of file serializer.hpp.

Member Function Documentation

◆ deser_dynamic()

template<typename T >
template<bool is_serialize>
static void Eng3D::Deser::SerializerMemcpy< T >::deser_dynamic ( Eng3D::Deser::Archive ar,
type< is_serialize > &  obj 
)
inlinestatic

Definition at line 167 of file serializer.hpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: