DecodeUntaggedDecimalValue decodes a value encoded by EncodeUntaggedDecimalValue.
(b []byte)
| 3071 | |
| 3072 | // DecodeUntaggedDecimalValue decodes a value encoded by EncodeUntaggedDecimalValue. |
| 3073 | func DecodeUntaggedDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) { |
| 3074 | var i uint64 |
| 3075 | b, _, i, err = DecodeNonsortingStdlibUvarint(b) |
| 3076 | if err != nil { |
| 3077 | return b, apd.Decimal{}, err |
| 3078 | } |
| 3079 | d, err = DecodeNonsortingDecimal(b[:int(i)], nil) |
| 3080 | return b[int(i):], d, err |
| 3081 | } |
| 3082 | |
| 3083 | // DecodeIntoUntaggedDecimalValue is like DecodeUntaggedDecimalValue except it |
| 3084 | // writes the new Decimal into the input apd.Decimal pointer, which must be |
no test coverage detected
searching dependent graphs…