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

Function EncodeFloatValue

pkg/util/encoding/encoding.go:2620–2623  ·  view source on GitHub ↗

EncodeFloatValue encodes a float value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, f float64)

Source from the content-addressed store, hash-verified

2618// EncodeFloatValue encodes a float value with its value tag, appends it to the
2619// supplied buffer, and returns the final buffer.
2620func EncodeFloatValue(appendTo []byte, colIDDelta uint32, f float64) []byte {
2621 appendTo = EncodeValueTag(appendTo, colIDDelta, Float)
2622 return EncodeUntaggedFloatValue(appendTo, f)
2623}
2624
2625// EncodeUntaggedFloatValue encodes a float value, appends it to the supplied buffer,
2626// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedFloatValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…