MCPcopy Create free account
hub / github.com/apache/impala / DecodeFixed64

Function DecodeFixed64

be/src/kudu/util/coding.h:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81inline uint64_t DecodeFixed64(const uint8_t *ptr) {
82#if __BYTE_ORDER == __LITTLE_ENDIAN
83 // Load the raw bytes
84 uint64_t result;
85 memcpy(&result, ptr, sizeof(result)); // gcc optimizes this to a plain load
86 return result;
87#else
88 uint64_t lo = DecodeFixed32(ptr);
89 uint64_t hi = DecodeFixed32(ptr + 4);
90 return (hi << 32) | lo;
91#endif
92}
93
94// Internal routine for use by fallback path of GetVarint32Ptr
95extern const uint8_t *GetVarint32PtrFallback(const uint8_t *p,

Callers

nothing calls this directly

Calls 1

DecodeFixed32Function · 0.85

Tested by

no test coverage detected