EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending without actually encoding.
(v uint64)
| 512 | // EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending |
| 513 | // without actually encoding. |
| 514 | func EncLenUvarintAscending(v uint64) int { |
| 515 | if v <= intSmall { |
| 516 | return 1 |
| 517 | } |
| 518 | return 2 + highestByteIndex(v) |
| 519 | } |
| 520 | |
| 521 | // EncLenUvarintDescending returns the encoding length for |
| 522 | // EncodeUvarintDescending without actually encoding. |
no test coverage detected
searching dependent graphs…