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

Function EncodeUint64Ascending

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

261// representation. The bytes are appended to the supplied buffer and
262// the final buffer is returned.
263func EncodeUint64Ascending(b []byte, v uint64) []byte {
264 return append(b,
265 byte(v>>56), byte(v>>48), byte(v>>40), byte(v>>32),
266 byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
267}
268
269// EncodeUint64Descending encodes the uint64 value so that it sorts in
270// reverse order, from largest to smallest.

Callers 5

EncodeUint64DescendingFunction · 0.85
EncodeGeoAscendingFunction · 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…