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

Function GetVarint32Ptr

src/leveldb/util/coding.h:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148const char* GetVarint32PtrFallback(const char* p, const char* limit,
149 uint32_t* value);
150inline const char* GetVarint32Ptr(const char* p, const char* limit,
151 uint32_t* value) {
152 if (p < limit) {
153 uint32_t result = *(reinterpret_cast<const uint8_t*>(p));
154 if ((result & 128) == 0) {
155 *value = result;
156 return p + 1;
157 }
158 }
159 return GetVarint32PtrFallback(p, limit, value);
160}
161
162} // namespace leveldb
163

Callers 6

DecodeEntryFunction · 0.85
TESTFunction · 0.85
GetVarint32Function · 0.85
GetLengthPrefixedSliceFunction · 0.85
GetLengthPrefixedSliceFunction · 0.85
GetMethod · 0.85

Calls 1

GetVarint32PtrFallbackFunction · 0.85

Tested by 1

TESTFunction · 0.68