| 83 | } |
| 84 | |
| 85 | static void encodeVByte(unsigned char*& data, unsigned int v) |
| 86 | { |
| 87 | // encode 32-bit value in up to 5 7-bit groups |
| 88 | do |
| 89 | { |
| 90 | *data++ = (v & 127) | (v > 127 ? 128 : 0); |
| 91 | v >>= 7; |
| 92 | } while (v); |
| 93 | } |
| 94 | |
| 95 | static unsigned int decodeVByte(const unsigned char*& data) |
| 96 | { |
no outgoing calls
no test coverage detected