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

Function EncodeStringAscending

pkg/util/encoding/encoding.go:931–933  ·  view source on GitHub ↗

EncodeStringAscending encodes the string value using an escape-based encoding. See EncodeBytes for details. The encoded bytes are append to the supplied buffer and the resulting buffer is returned.

(b []byte, s string)

Source from the content-addressed store, hash-verified

929// EncodeBytes for details. The encoded bytes are append to the supplied buffer
930// and the resulting buffer is returned.
931func EncodeStringAscending(b []byte, s string) []byte {
932 return encodeStringAscendingWithTerminatorAndPrefix(b, s, ascendingBytesEscapes.escapedTerm, bytesMarker)
933}
934
935// encodeStringAscendingWithTerminatorAndPrefix encodes the string value using an escape-based encoding. See
936// EncodeBytes for details. The encoded bytes are append to the supplied buffer

Callers 3

EncodeForwardIndexMethod · 0.92
EncodeInvertedIndexKeyFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…