|
CHAILink SDK
Version 1.3
|
Go to the documentation of this file.
19 #ifndef _PLATFORMSERIALIZATIONMACRO_H
20 #define _PLATFORMSERIALIZATIONMACRO_H
25 #define SERIALIZE_UINT64(d, s) *((CPUINT64*) (d)) = (CPUINT64) (s), d += 8
26 #define SERIALIZE_UINT32(d, s) *((CPUINT32*) (d)) = (CPUINT32) (s), d += 4
27 #define SERIALIZE_UINT16(d, s) *((CPUINT16*) (d)) = (CPUINT16) (s), d += 2
28 #define SERIALIZE_UINT8(d, s) *((CPUINT8*) (d)) = (CPUINT8) (s), d += 1
30 #define DESERIALIZE_UINT64(d, s) (d) = *((CPUINT64*) (s)), s += 8
31 #define DESERIALIZE_UINT32(d, s) (d) = *((CPUINT32*) (s)), s += 4
32 #define DESERIALIZE_UINT16(d, s) (d) = *((CPUINT16*) (s)), s += 2
33 #define DESERIALIZE_UINT8(d, s) (d) = *((CPUINT8*) (s)), s += 1
35 #endif // _PLATFORMSERIALIZATIONMACRO_H