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

Function EncodeFloatValue

pkg/util/encoding/encoding.go:1864–1867  ·  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, colID uint32, f float64)

Source from the content-addressed store, hash-verified

1862// EncodeFloatValue encodes a float value with its value tag, appends it to the
1863// supplied buffer, and returns the final buffer.
1864func EncodeFloatValue(appendTo []byte, colID uint32, f float64) []byte {
1865 appendTo = EncodeValueTag(appendTo, colID, Float)
1866 return EncodeUntaggedFloatValue(appendTo, f)
1867}
1868
1869// EncodeUntaggedFloatValue encodes a float value, appends it to the supplied buffer,
1870// 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…