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

Function EncodeBytesAscending

pkg/util/encoding/encoding.go:634–636  ·  view source on GitHub ↗

EncodeBytesAscending encodes the []byte value using an escape-based encoding. The encoded value is terminated with the sequence "\x00\x01" which is guaranteed to not occur elsewhere in the encoded value. The encoded bytes are append to the supplied buffer and the resulting buffer is returned.

(b []byte, data []byte)

Source from the content-addressed store, hash-verified

632// encoded value. The encoded bytes are append to the supplied buffer
633// and the resulting buffer is returned.
634func EncodeBytesAscending(b []byte, data []byte) []byte {
635 return encodeBytesAscendingWithTerminatorAndPrefix(b, data, ascendingBytesEscapes.escapedTerm, bytesMarker)
636}
637
638// EncodeNextBytesAscending encodes the []byte value with an extra 0x00 byte
639// appended before encoding. It's equivalent to

Callers 1

EncodeBytesDescendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…