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)
| 616 | // as the function does not know from the encoding itself what the length |
| 617 | // of the encoded value is. |
| 618 | func 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. |
no test coverage detected
searching dependent graphs…