MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / DecodeFixed64

Function DecodeFixed64

src/leveldb/util/coding.h:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72inline uint64_t DecodeFixed64(const char* ptr) {
73 if (port::kLittleEndian) {
74 // Load the raw bytes
75 uint64_t result;
76 memcpy(&result, ptr, sizeof(result)); // gcc optimizes this to a plain load
77 return result;
78 } else {
79 uint64_t lo = DecodeFixed32(ptr);
80 uint64_t hi = DecodeFixed32(ptr + 4);
81 return (hi << 32) | lo;
82 }
83}
84
85// Internal routine for use by fallback path of GetVarint32Ptr
86extern const char* GetVarint32PtrFallback(const char* p,

Callers 7

TESTFunction · 0.85
GetMethod · 0.85
SequenceMethod · 0.85
ExtractValueTypeFunction · 0.85
ParseInternalKeyFunction · 0.85
GetFileIteratorFunction · 0.85
CompareMethod · 0.85

Calls 2

memcpyFunction · 0.85
DecodeFixed32Function · 0.85

Tested by 1

TESTFunction · 0.68