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

Function EncodeUint64Descending

pkg/util/encoding/encoding.go:271–273  ·  view source on GitHub ↗

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

(b []byte, v uint64)

Source from the content-addressed store, hash-verified

269// EncodeUint64Descending encodes the uint64 value so that it sorts in
270// reverse order, from largest to smallest.
271func EncodeUint64Descending(b []byte, v uint64) []byte {
272 return EncodeUint64Ascending(b, ^v)
273}
274
275// DecodeUint64Ascending decodes a uint64 from the input buffer, treating
276// the input as a big-endian 8 byte uint64 representation. The remainder

Callers 1

EncodeGeoDescendingFunction · 0.85

Calls 1

EncodeUint64AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…