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

Function EncodeDecimalValue

pkg/util/encoding/encoding.go:2728–2731  ·  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, colIDDelta uint32, d *apd.Decimal)

Source from the content-addressed store, hash-verified

2726// EncodeDecimalValue encodes an apd.Decimal value with its value tag, appends
2727// it to the supplied buffer, and returns the final buffer.
2728func EncodeDecimalValue(appendTo []byte, colIDDelta uint32, d *apd.Decimal) []byte {
2729 appendTo = EncodeValueTag(appendTo, colIDDelta, Decimal)
2730 return EncodeUntaggedDecimalValue(appendTo, d)
2731}
2732
2733// EncodeUntaggedDecimalValue encodes an apd.Decimal value, appends it to the supplied
2734// 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…