| 125 | } |
| 126 | |
| 127 | int VarintLength(uint64_t v) { |
| 128 | int len = 1; |
| 129 | while (v >= 128) { |
| 130 | v >>= 7; |
| 131 | len++; |
| 132 | } |
| 133 | return len; |
| 134 | } |
| 135 | |
| 136 | const char* GetVarint32Ptr(const char* p, const char* limit, uint32* value) { |
| 137 | if (p < limit) { |
no outgoing calls
no test coverage detected