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

Function EncodeBoolValue

pkg/util/encoding/encoding.go:1840–1845  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1838// EncodeBoolValue encodes a bool value, appends it to the supplied buffer, and
1839// returns the final buffer.
1840func EncodeBoolValue(appendTo []byte, colID uint32, b bool) []byte {
1841 if b {
1842 return EncodeValueTag(appendTo, colID, True)
1843 }
1844 return EncodeValueTag(appendTo, colID, False)
1845}
1846
1847// EncodeIntValue encodes an int value with its value tag, appends it to the
1848// 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…