MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isLittleEndian

Function isLittleEndian

src/common/utils.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool isLittleEndian() {
23 // Little endian arch stores the least significant value in the lower bytes.
24 int testNumber = 1;
25 return *(uint8_t*)&testNumber == 1;
26}
27
28} // namespace common
29} // namespace lbug

Callers 3

parseHeaderMethod · 0.85
parseTypeMethod · 0.85
OrderByKeyEncoderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected