CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PlatformSerializationMacro.h File Reference

Go to the source code of this file.

Macros

#define SERIALIZE_UINT64(d, s)   *((CPUINT64*) (d)) = (CPUINT64) (s), d += 8
 Enable this define on Big endian platform (some serialization optimization will be disabled). More...
 
#define SERIALIZE_UINT32(d, s)   *((CPUINT32*) (d)) = (CPUINT32) (s), d += 4
 
#define SERIALIZE_UINT16(d, s)   *((CPUINT16*) (d)) = (CPUINT16) (s), d += 2
 
#define SERIALIZE_UINT8(d, s)   *((CPUINT8*) (d)) = (CPUINT8) (s), d += 1
 
#define DESERIALIZE_UINT64(d, s)   (d) = *((CPUINT64*) (s)), s += 8
 
#define DESERIALIZE_UINT32(d, s)   (d) = *((CPUINT32*) (s)), s += 4
 
#define DESERIALIZE_UINT16(d, s)   (d) = *((CPUINT16*) (s)), s += 2
 
#define DESERIALIZE_UINT8(d, s)   (d) = *((CPUINT8*) (s)), s += 1