MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetVarint64

Function GetVarint64

src/leveldb/util/coding.cc:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool GetVarint64(Slice* input, uint64_t* value) {
134 const char* p = input->data();
135 const char* limit = p + input->size();
136 const char* q = GetVarint64Ptr(p, limit, value);
137 if (q == nullptr) {
138 return false;
139 } else {
140 *input = Slice(q, limit - q);
141 return true;
142 }
143}
144
145const char* GetLengthPrefixedSlice(const char* p, const char* limit,
146 Slice* result) {

Callers 2

DecodeFromMethod · 0.85
DecodeFromMethod · 0.85

Calls 4

GetVarint64PtrFunction · 0.85
SliceClass · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected