MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / little_endianess

Function little_endianess

dependencies/json/json.hpp:7749–7752  ·  view source on GitHub ↗

! @brief determine system byte order @return true if and only if system's byte order is little endian @note from https://stackoverflow.com/a/1001328/266378 */

Source from the content-addressed store, hash-verified

7747@note from https://stackoverflow.com/a/1001328/266378
7748*/
7749static inline bool little_endianess(int num = 1) noexcept
7750{
7751 return *reinterpret_cast<char*>(&num) == 1;
7752}
7753
7754
7755///////////////////

Callers 2

binary_readerClass · 0.70
binary_writerClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected