MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / little_endianess

Function little_endianess

Source/Utils/json.hpp:7680–7683  ·  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

7678 @note from https://stackoverflow.com/a/1001328/266378
7679 */
7680 static inline bool little_endianess(int num = 1) noexcept
7681 {
7682 return *reinterpret_cast<char*>(&num) == 1;
7683 }
7684
7685
7686 ///////////////////

Callers 2

binary_readerClass · 0.85
binary_writerClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected