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

Function EncodeUint64Descending

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

191// EncodeUint64Descending encodes the uint64 value so that it sorts in
192// reverse order, from largest to smallest.
193func EncodeUint64Descending(b []byte, v uint64) []byte {
194 return EncodeUint64Ascending(b, ^v)
195}
196
197// DecodeUint64Ascending decodes a uint64 from the input buffer, treating
198// the input as a big-endian 8 byte uint64 representation. The remainder

Callers

nothing calls this directly

Calls 1

EncodeUint64AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…