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

Function EncodeUntaggedFloat32Value

pkg/util/encoding/encoding.go:2633–2635  ·  view source on GitHub ↗

EncodeUntaggedFloat32Value encodes a float32 value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, f float32)

Source from the content-addressed store, hash-verified

2631// EncodeUntaggedFloat32Value encodes a float32 value, appends it to the supplied buffer,
2632// and returns the final buffer.
2633func EncodeUntaggedFloat32Value(appendTo []byte, f float32) []byte {
2634 return EncodeUint32Ascending(appendTo, math.Float32bits(f))
2635}
2636
2637// EncodeBytesValue encodes a byte array value with its value tag, appends it to
2638// the supplied buffer, and returns the final buffer.

Callers 1

EncodeFunction · 0.92

Calls 1

EncodeUint32AscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…