MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncLenUvarintAscending

Function EncLenUvarintAscending

pkg/util/encoding/encoding.go:514–519  ·  view source on GitHub ↗

EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending without actually encoding.

(v uint64)

Source from the content-addressed store, hash-verified

512// EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending
513// without actually encoding.
514func 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.

Callers 1

encodeVarExpNumberFunction · 0.85

Calls 1

highestByteIndexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…