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

Function EncodeDecimalValue

pkg/util/encoding/encoding.go:1926–1929  ·  view source on GitHub ↗

EncodeDecimalValue encodes an apd.Decimal value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colID uint32, d *apd.Decimal)

Source from the content-addressed store, hash-verified

1924// EncodeDecimalValue encodes an apd.Decimal value with its value tag, appends
1925// it to the supplied buffer, and returns the final buffer.
1926func EncodeDecimalValue(appendTo []byte, colID uint32, d *apd.Decimal) []byte {
1927 appendTo = EncodeValueTag(appendTo, colID, Decimal)
1928 return EncodeUntaggedDecimalValue(appendTo, d)
1929}
1930
1931// EncodeUntaggedDecimalValue encodes an apd.Decimal value, appends it to the supplied
1932// buffer, and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…