| 96 | const uint8_t *limit, |
| 97 | uint32_t* value); |
| 98 | inline 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 |
no test coverage detected