19 static constexpr int16_t One = 1;
20 const char* pointer =
reinterpret_cast<const char*
>(&One);
21 return pointer[0] == 0;
26 return (value << 8 & 0xFF00) | (value >> 8 & 0x00FF);
31 return (value << 8 & 0xFF00) | (value >> 8 & 0x00FF);
36 return (value << 24 & 0xFF000000) | (value << 8 & 0x00FF0000) | (value >> 8 & 0x0000FF00) | (value >> 24 & 0x000000FF);
41 return (value << 24 & 0xFF000000) | (value << 8 & 0x00FF0000) | (value >> 8 & 0x0000FF00) | (value >> 24 & 0x000000FF);
46 return static_cast<float>(
SwapEndian(
static_cast<uint32_t
>(value)));
Definition: CodeBuffer.cpp:12
bool IsBigEndian()
Definition: Memory.h:17
int16_t SwapEndian(const int16_t value)
Definition: Memory.h:24