EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending without actually encoding.
(v uint64)
| 406 | // EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending |
| 407 | // without actually encoding. |
| 408 | func EncLenUvarintAscending(v uint64) int { |
| 409 | if v <= intSmall { |
| 410 | return 1 |
| 411 | } |
| 412 | return 2 + highestByteIndex(v) |
| 413 | } |
| 414 | |
| 415 | // EncLenUvarintDescending returns the encoding length for |
| 416 | // EncodeUvarintDescending without actually encoding. |
no test coverage detected
searching dependent graphs…