MCPcopy Create free account
hub / github.com/apache/impala / GetVarint32Ptr

Function GetVarint32Ptr

be/src/kudu/util/coding.h:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 const uint8_t *limit,
97 uint32_t* value);
98inline const uint8_t *GetVarint32Ptr(const uint8_t *p,
99 const uint8_t *limit,
100 uint32_t* value) {
101 if (PREDICT_TRUE(p < limit)) {
102 uint32_t result = *p;
103 if (PREDICT_TRUE((result & 128) == 0)) {
104 *value = result;
105 return p + 1;
106 }
107 }
108 return GetVarint32PtrFallback(p, limit, value);
109}
110
111} // namespace kudu
112

Callers 2

GetVarint32Function · 0.85
GetLengthPrefixedSliceFunction · 0.85

Calls 1

GetVarint32PtrFallbackFunction · 0.85

Tested by

no test coverage detected