MCPcopy Create free account
hub / github.com/apache/orc / byteSwap

Function byteSwap

c++/src/Geospatial.cc:77–79  ·  view source on GitHub ↗

Swap the byte order (i.e. endianness)

Source from the content-addressed store, hash-verified

75
76 // Swap the byte order (i.e. endianness)
77 static inline uint32_t byteSwap(uint32_t value) {
78 return static_cast<uint32_t>(ORC_BYTE_SWAP32(value));
79 }
80 static inline double byteSwap(double value) {
81 const uint64_t swapped = ORC_BYTE_SWAP64(safeCopy<uint64_t>(value));
82 return safeCopy<double>(swapped);

Callers 2

readUInt32Method · 0.85
readCoordsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected