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

Function EncodeDecimalDescending

pkg/util/encoding/decimal.go:45–47  ·  view source on GitHub ↗

EncodeDecimalDescending is the descending version of EncodeDecimalAscending.

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

Source from the content-addressed store, hash-verified

43
44// EncodeDecimalDescending is the descending version of EncodeDecimalAscending.
45func EncodeDecimalDescending(appendTo []byte, d *apd.Decimal) []byte {
46 return encodeDecimal(appendTo, d, true)
47}
48
49func encodeDecimal(appendTo []byte, d *apd.Decimal, invert bool) []byte {
50 if d.IsZero() {

Callers 1

EncodeForwardIndexMethod · 0.92

Calls 1

encodeDecimalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…