17 #include <pia/clone/clone_definitions.h> 18 #include <pia/common/common_ByteOrder.h> 57 template <
typename Type_>
73 static void Serialize(
void* pBuffer,
const Type& value)
75 Reverse(reinterpret_cast<Type*>(pBuffer), &value);
86 static void Deserialize(Type* pValue,
const void* cpData)
88 Reverse(pValue, reinterpret_cast<const Type*>(cpData));
99 static size_t GetSize()
111 static const size_t SIZE =
sizeof(
Type);
125 static void Reverse(Type* pTo,
const Type* cpFrom);
136 template <
typename T>
137 static void ReverseValue(T* pTo,
const T* cpFrom)
139 common::ByteOrder::Swap<sizeof(T)>(pTo, cpFrom);
148 ReverseValue(pTo, pFrom);
153 ReverseValue(pTo, pFrom);
158 ReverseValue(pTo, pFrom);
163 ReverseValue(pTo, pFrom);
168 ReverseValue(pTo, pFrom);
173 ReverseValue(pTo, pFrom);
178 ReverseValue(pTo, pFrom);
183 ReverseValue(pTo, pFrom);
188 ReverseValue(pTo, pFrom);
193 ReverseValue(pTo, pFrom);
Type_ Type
Defines the type of the data to be serialized.
Definition: clone_ReverseSerializePolicy.h:64
Reverses the byte order of the source data and then serializes it.
Definition: clone_ReverseSerializePolicy.h:58