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

Function DecodeNonsortingDecimal

pkg/util/encoding/decimal.go:618–622  ·  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

616// as the function does not know from the encoding itself what the length
617// of the encoded value is.
618func DecodeNonsortingDecimal(buf []byte, tmp []byte) (apd.Decimal, error) {
619 var dec apd.Decimal
620 err := DecodeIntoNonsortingDecimal(&dec, buf, tmp)
621 return dec, err
622}
623
624// DecodeIntoNonsortingDecimal is like DecodeNonsortingDecimal, but it operates
625// 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…