16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_ENDIAN_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_ENDIAN_H_ 27 uint16_t original = 1;
28 uint8_t* words =
reinterpret_cast<uint8_t*
>(&original);
34 return ((input & 0x00ff) << 8 | (input & 0xff00) >> 8);
40 (input & 0xff000000) >> 24 |
41 (input & 0x0000ff00) << 8 |
42 (input & 0x00ff0000) >> 8 |
43 (input & 0x000000ff) << 24);
50 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_ENDIAN_H_ uint16_t swapEndian(uint16_t input)
Definition: Endian.h:33
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool littleEndianMachine()
Function used to check the machine endianness.
Definition: Endian.h:26