EncLenUvarintDescending returns the encoding length for EncodeUvarintDescending without actually encoding.
(v uint64)
| 415 | // EncLenUvarintDescending returns the encoding length for |
| 416 | // EncodeUvarintDescending without actually encoding. |
| 417 | func EncLenUvarintDescending(v uint64) int { |
| 418 | if v == 0 { |
| 419 | return 1 |
| 420 | } |
| 421 | return 2 + highestByteIndex(v) |
| 422 | } |
| 423 | |
| 424 | // DecodeUvarintAscending decodes a varint encoded uint64 from the input |
| 425 | // buffer. The remainder of the input buffer and the decoded uint64 |
no test coverage detected
searching dependent graphs…