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

Function DecodeUint64Ascending

pkg/util/encoding/encoding.go:200–206  ·  view source on GitHub ↗

DecodeUint64Ascending decodes a uint64 from the input buffer, treating the input as a big-endian 8 byte uint64 representation. The remainder of the input buffer and the decoded uint64 are returned.

(b []byte)

Source from the content-addressed store, hash-verified

198// the input as a big-endian 8 byte uint64 representation. The remainder
199// of the input buffer and the decoded uint64 are returned.
200func DecodeUint64Ascending(b []byte) ([]byte, uint64, error) {
201 if len(b) < 8 {
202 return nil, 0, errors.Errorf("insufficient bytes to decode uint64 int value")
203 }
204 v := binary.BigEndian.Uint64(b)
205 return b[8:], v, nil
206}
207
208// DecodeUint64Descending decodes a uint64 value which was encoded
209// using EncodeUint64Descending.

Callers 4

DecodeUint64DescendingFunction · 0.85
DecodeUntaggedFloatValueFunction · 0.85
DecodeFloatAscendingFunction · 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…