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

Function DecodeFloatValue

pkg/util/encoding/encoding.go:2097–2103  ·  view source on GitHub ↗

DecodeFloatValue decodes a value encoded by EncodeFloatValue.

(b []byte)

Source from the content-addressed store, hash-verified

2095
2096// DecodeFloatValue decodes a value encoded by EncodeFloatValue.
2097func DecodeFloatValue(b []byte) (remaining []byte, f float64, err error) {
2098 b, err = decodeValueTypeAssert(b, Float)
2099 if err != nil {
2100 return b, 0, err
2101 }
2102 return DecodeUntaggedFloatValue(b)
2103}
2104
2105// DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue.
2106func 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…