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

Function EncodeUint32Descending

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

156// EncodeUint32Descending encodes the uint32 value so that it sorts in
157// reverse order, from largest to smallest.
158func EncodeUint32Descending(b []byte, v uint32) []byte {
159 return EncodeUint32Ascending(b, ^v)
160}
161
162// DecodeUint32Ascending decodes a uint32 from the input buffer, treating
163// the input as a big-endian 4 byte uint32 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…