MCPcopy Create free account
hub / github.com/OpenAtomFoundation/pikiwidb / EncodeFixed64

Function EncodeFixed64

src/storage/src/coding.h:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40inline void EncodeFixed64(char* buf, uint64_t value) {
41 if (kLittleEndian) {
42 memcpy(buf, &value, sizeof(value));
43 } else {
44 buf[0] = value & 0xff;
45 buf[1] = (value >> 8) & 0xff;
46 buf[2] = (value >> 16) & 0xff;
47 buf[3] = (value >> 24) & 0xff;
48 buf[4] = (value >> 32) & 0xff;
49 buf[5] = (value >> 40) & 0xff;
50 buf[6] = (value >> 48) & 0xff;
51 buf[7] = (value >> 56) & 0xff;
52 }
53}
54
55inline uint32_t DecodeFixed32(const char* ptr) {
56 if (kLittleEndian) {

Callers 15

InitMetaValueMethod · 0.70
set_entries_addedMethod · 0.70
set_first_idMethod · 0.70
set_last_idMethod · 0.70
EncodeMethod · 0.70
FindShortestSeparatorMethod · 0.70
EncodeMethod · 0.70
AppendIndexMethod · 0.70
SetIndexToValueMethod · 0.70
set_countMethod · 0.70
ModifyCountMethod · 0.70

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.40