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

Function EncodeUint32Descending

pkg/util/encoding/encoding.go:225–227  ·  view source on GitHub ↗

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

(b []byte, v uint32)

Source from the content-addressed store, hash-verified

223// EncodeUint32Descending encodes the uint32 value so that it sorts in
224// reverse order, from largest to smallest.
225func EncodeUint32Descending(b []byte, v uint32) []byte {
226 return EncodeUint32Ascending(b, ^v)
227}
228
229// DecodeUint16Ascending decodes a uint16 from the input buffer, treating
230// the input as a big-endian 2 byte uint16 representation. The remainder

Callers

nothing calls this directly

Calls 1

EncodeUint32AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…