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

Function DecodeFloatValue

pkg/util/encoding/encoding.go:2929–2935  ·  view source on GitHub ↗

DecodeFloatValue decodes a value encoded by EncodeFloatValue.

(b []byte)

Source from the content-addressed store, hash-verified

2927
2928// DecodeFloatValue decodes a value encoded by EncodeFloatValue.
2929func DecodeFloatValue(b []byte) (remaining []byte, f float64, err error) {
2930 b, err = decodeValueTypeAssert(b, Float)
2931 if err != nil {
2932 return b, 0, err
2933 }
2934 return DecodeUntaggedFloatValue(b)
2935}
2936
2937// DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue.
2938func DecodeUntaggedFloatValue(b []byte) (remaining []byte, f float64, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedFloatValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…