MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / is_big_endian

Function is_big_endian

extlibs/fmt/include/fmt/format.h:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249inline bool is_big_endian() {
250 const auto u = 1u;
251 struct bytes {
252 char data[sizeof(u)];
253 };
254 return bit_cast<bytes>(u).data[0] == 0;
255}
256
257// A fallback implementation of uintptr_t for systems that lack it.
258struct fallback_uintptr {

Callers 1

fallback_uintptrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected