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

Function EncodeNullAscending

pkg/util/encoding/encoding.go:1032–1034  ·  view source on GitHub ↗

EncodeNullAscending encodes a NULL value. The encodes bytes are appended to the supplied buffer and the final buffer is returned. The encoded value for a NULL is guaranteed to not be a prefix for the EncodeVarint, EncodeFloat, EncodeBytes and EncodeString encodings.

(b []byte)

Source from the content-addressed store, hash-verified

1030// NULL is guaranteed to not be a prefix for the EncodeVarint, EncodeFloat,
1031// EncodeBytes and EncodeString encodings.
1032func EncodeNullAscending(b []byte) []byte {
1033 return append(b, encodedNull)
1034}
1035
1036// EncodeJSONAscending encodes a JSON Type. The encoded bytes are appended to the
1037// supplied buffer and the final buffer is returned.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…