MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / EncodeFixed64

Function EncodeFixed64

src/log/coding.h:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48inline void EncodeFixed64(char* buf, uint64_t value) {
49 if (fedb::base::kLittleEndian) {
50 memcpy(buf, &value, sizeof(value));
51 } else {
52 buf[0] = value & 0xff;
53 buf[1] = (value >> 8) & 0xff;
54 buf[2] = (value >> 16) & 0xff;
55 buf[3] = (value >> 24) & 0xff;
56 buf[4] = (value >> 32) & 0xff;
57 buf[5] = (value >> 40) & 0xff;
58 buf[6] = (value >> 48) & 0xff;
59 buf[7] = (value >> 56) & 0xff;
60 }
61}
62
63inline uint32_t DecodeFixed32(const char* ptr) {
64 if (fedb::base::kLittleEndian) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected