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

Function EncodeVarintDescending

pkg/util/encoding/encoding.go:255–257  ·  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

253// EncodeVarintDescending encodes the int64 value so that it sorts in reverse
254// order, from largest to smallest.
255func EncodeVarintDescending(b []byte, v int64) []byte {
256 return EncodeVarintAscending(b, ^v)
257}
258
259// getVarintLen returns the encoded length of an encoded varint. Assumes the
260// slice has at least one byte.

Callers 1

EncodeDurationDescendingFunction · 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…