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

Function EncodeFloatDescending

pkg/util/encoding/float.go:57–62  ·  view source on GitHub ↗

EncodeFloatDescending is the descending version of EncodeFloatAscending.

(b []byte, f float64)

Source from the content-addressed store, hash-verified

55
56// EncodeFloatDescending is the descending version of EncodeFloatAscending.
57func EncodeFloatDescending(b []byte, f float64) []byte {
58 if math.IsNaN(f) {
59 return append(b, floatNaNDesc)
60 }
61 return EncodeFloatAscending(b, -f)
62}
63
64// DecodeFloatAscending returns the remaining byte slice after decoding and the decoded
65// float64 from buf.

Callers

nothing calls this directly

Calls 1

EncodeFloatAscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…