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

Function EncodeBoolValue

pkg/util/encoding/encoding.go:2596–2601  ·  view source on GitHub ↗

EncodeBoolValue encodes a bool value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, b bool)

Source from the content-addressed store, hash-verified

2594// EncodeBoolValue encodes a bool value, appends it to the supplied buffer, and
2595// returns the final buffer.
2596func EncodeBoolValue(appendTo []byte, colIDDelta uint32, b bool) []byte {
2597 if b {
2598 return EncodeValueTag(appendTo, colIDDelta, True)
2599 }
2600 return EncodeValueTag(appendTo, colIDDelta, False)
2601}
2602
2603// EncodeIntValue encodes an int value with its value tag, appends it to the
2604// supplied buffer, and returns the final buffer.

Callers

nothing calls this directly

Calls 1

EncodeValueTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…