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

Function DecodeNonsortingDecimal

pkg/util/encoding/decimal.go:614–618  ·  view source on GitHub ↗

DecodeNonsortingDecimal returns the decoded decimal from buf encoded with EncodeNonsortingDecimal. buf is assumed to contain only the encoded decimal, as the function does not know from the encoding itself what the length of the encoded value is.

(buf []byte, tmp []byte)

Source from the content-addressed store, hash-verified

612// as the function does not know from the encoding itself what the length
613// of the encoded value is.
614func DecodeNonsortingDecimal(buf []byte, tmp []byte) (apd.Decimal, error) {
615 var dec apd.Decimal
616 err := DecodeIntoNonsortingDecimal(&dec, buf, tmp)
617 return dec, err
618}
619
620// DecodeIntoNonsortingDecimal is like DecodeNonsortingDecimal, but it operates
621// on the passed-in *apd.Decimal instead of producing a new one.

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…