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

Function EncodeUntaggedFloatValue

pkg/util/encoding/encoding.go:2627–2629  ·  view source on GitHub ↗

EncodeUntaggedFloatValue encodes a float value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, f float64)

Source from the content-addressed store, hash-verified

2625// EncodeUntaggedFloatValue encodes a float value, appends it to the supplied buffer,
2626// and returns the final buffer.
2627func EncodeUntaggedFloatValue(appendTo []byte, f float64) []byte {
2628 return EncodeUint64Ascending(appendTo, math.Float64bits(f))
2629}
2630
2631// EncodeUntaggedFloat32Value encodes a float32 value, appends it to the supplied buffer,
2632// and returns the final buffer.

Callers 2

EncodeGeoInvertedBBoxFunction · 0.85
EncodeFloatValueFunction · 0.85

Calls 1

EncodeUint64AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…