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

Function EncodeUntaggedFloatValue

pkg/util/encoding/encoding.go:1871–1873  ·  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

1869// EncodeUntaggedFloatValue encodes a float value, appends it to the supplied buffer,
1870// and returns the final buffer.
1871func EncodeUntaggedFloatValue(appendTo []byte, f float64) []byte {
1872 return EncodeUint64Ascending(appendTo, math.Float64bits(f))
1873}
1874
1875// EncodeBytesValue encodes a byte array value with its value tag, appends it to
1876// the supplied buffer, and returns the final buffer.

Callers 1

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…