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

Function EncodeBytesAscending

pkg/util/encoding/encoding.go:500–502  ·  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

498// encoded value. The encoded bytes are append to the supplied buffer
499// and the resulting buffer is returned.
500func EncodeBytesAscending(b []byte, data []byte) []byte {
501 return encodeBytesAscendingWithTerminatorAndPrefix(b, data, ascendingEscapes.escapedTerm, bytesMarker)
502}
503
504// encodeBytesAscendingWithTerminatorAndPrefix encodes the []byte value using an escape-based
505// encoding. The encoded value is terminated with the sequence

Callers 1

EncodeBytesDescendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…