line |
true |
false |
branch |
9
|
102443 |
52003 |
while (i > 127) { |
10
|
102443 |
0 |
res += 0x80 | uint8_t(i & 0x7F); |
13
|
52003 |
0 |
res += uint8_t(i); |
20
|
154462 |
0 |
while (i < str.size() && (str[i] & 0x80)) { |
|
102443 |
52019 |
while (i < str.size() && (str[i] & 0x80)) { |
|
102443 |
52019 |
while (i < str.size() && (str[i] & 0x80)) { |
51
|
17 |
0 |
storage = varint_encode_s(val) + storage; |
|
17 |
0 |
storage = varint_encode_s(val) + storage; |
58
|
33 |
0 |
return varint_decode_s(storage.substr(0, size_of_first())); |
62
|
18 |
12 |
for (char c : storage) { |
63
|
18 |
0 |
if (!(c&0x80)) { |
77
|
42 |
0 |
for (; pos < storage.size(); ++pos) { |
78
|
39 |
3 |
if (!(storage[pos] & 0x80)) { |