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

Function EncLenUvarintAscending

pkg/util/encoding/encoding.go:408–413  ·  view source on GitHub ↗

EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending without actually encoding.

(v uint64)

Source from the content-addressed store, hash-verified

406// EncLenUvarintAscending returns the encoding length for EncodeUvarintAscending
407// without actually encoding.
408func 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.

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…