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

Function EncLenUvarintDescending

pkg/util/encoding/encoding.go:417–422  ·  view source on GitHub ↗

EncLenUvarintDescending returns the encoding length for EncodeUvarintDescending without actually encoding.

(v uint64)

Source from the content-addressed store, hash-verified

415// EncLenUvarintDescending returns the encoding length for
416// EncodeUvarintDescending without actually encoding.
417func 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

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…