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

Function EncodeDecimalDescending

pkg/util/encoding/decimal.go:50–52  ·  view source on GitHub ↗

EncodeDecimalDescending is the descending version of EncodeDecimalAscending.

(appendTo []byte, d *apd.Decimal)

Source from the content-addressed store, hash-verified

48
49// EncodeDecimalDescending is the descending version of EncodeDecimalAscending.
50func EncodeDecimalDescending(appendTo []byte, d *apd.Decimal) []byte {
51 return encodeDecimal(appendTo, d, true)
52}
53
54func encodeDecimal(appendTo []byte, d *apd.Decimal, invert bool) []byte {
55 if d.IsZero() {

Callers

nothing calls this directly

Calls 1

encodeDecimalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…