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

Function DecodeUntaggedFloatValue

pkg/util/encoding/encoding.go:2106–2113  ·  view source on GitHub ↗

DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue.

(b []byte)

Source from the content-addressed store, hash-verified

2104
2105// DecodeUntaggedFloatValue decodes a value encoded by EncodeUntaggedFloatValue.
2106func DecodeUntaggedFloatValue(b []byte) (remaining []byte, f float64, err error) {
2107 if len(b) < 8 {
2108 return b, 0, fmt.Errorf("float64 value should be exactly 8 bytes: %d", len(b))
2109 }
2110 var i uint64
2111 b, i, err = DecodeUint64Ascending(b)
2112 return b, math.Float64frombits(i), err
2113}
2114
2115// DecodeBytesValue decodes a value encoded by EncodeBytesValue.
2116func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) {

Callers 1

DecodeFloatValueFunction · 0.85

Calls 1

DecodeUint64AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…