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

Function EncodeUint64Ascending

pkg/util/encoding/encoding.go:185–189  ·  view source on GitHub ↗

EncodeUint64Ascending encodes the uint64 value using a big-endian 8 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.

(b []byte, v uint64)

Source from the content-addressed store, hash-verified

183// representation. The bytes are appended to the supplied buffer and
184// the final buffer is returned.
185func EncodeUint64Ascending(b []byte, v uint64) []byte {
186 return append(b,
187 byte(v>>56), byte(v>>48), byte(v>>40), byte(v>>32),
188 byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
189}
190
191// EncodeUint64Descending encodes the uint64 value so that it sorts in
192// reverse order, from largest to smallest.

Callers 4

EncodeUint64DescendingFunction · 0.85
EncodeUntaggedFloatValueFunction · 0.85
EncodeFloatAscendingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…