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

Function EncodeVarintDescending

pkg/util/encoding/encoding.go:336–338  ·  view source on GitHub ↗

EncodeVarintDescending encodes the int64 value so that it sorts in reverse order, from largest to smallest.

(b []byte, v int64)

Source from the content-addressed store, hash-verified

334// EncodeVarintDescending encodes the int64 value so that it sorts in reverse
335// order, from largest to smallest.
336func EncodeVarintDescending(b []byte, v int64) []byte {
337 return EncodeVarintAscending(b, ^v)
338}
339
340// getVarintLen returns the encoded length of an encoded varint. Assumes the
341// slice has at least one byte.

Callers 2

EncodeDurationDescendingFunction · 0.85
EncodeJSONValueLengthFunction · 0.85

Calls 1

EncodeVarintAscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…