MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / little_endianness

Function little_endianness

Source/external/json.hpp:9127–9130  ·  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

9125@note from https://stackoverflow.com/a/1001328/266378
9126*/
9127static inline bool little_endianness(int num = 1) noexcept
9128{
9129 return *reinterpret_cast<char*>(&num) == 1;
9130}
9131
9132
9133///////////////////

Callers 2

binary_readerClass · 0.85
binary_writerClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected