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

Function DecodeDecimalValue

pkg/util/encoding/encoding.go:3025–3031  ·  view source on GitHub ↗

DecodeDecimalValue decodes a value encoded by EncodeDecimalValue.

(b []byte)

Source from the content-addressed store, hash-verified

3023
3024// DecodeDecimalValue decodes a value encoded by EncodeDecimalValue.
3025func DecodeDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) {
3026 b, err = decodeValueTypeAssert(b, Decimal)
3027 if err != nil {
3028 return b, apd.Decimal{}, err
3029 }
3030 return DecodeUntaggedDecimalValue(b)
3031}
3032
3033// DecodeUntaggedBox2DValue decodes a value encoded by EncodeUntaggedBox2DValue.
3034func DecodeUntaggedBox2DValue(b []byte) (remaining []byte, box geopb.BoundingBox, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…