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

Function DecodeBytesAscending

pkg/util/encoding/encoding.go:741–743  ·  view source on GitHub ↗

DecodeBytesAscending decodes a []byte value from the input buffer which was encoded using EncodeBytesAscending. The decoded bytes are appended to r. The remainder of the input buffer and the decoded []byte are returned.

(b []byte, r []byte)

Source from the content-addressed store, hash-verified

739// are appended to r. The remainder of the input buffer and the
740// decoded []byte are returned.
741func DecodeBytesAscending(b []byte, r []byte) ([]byte, []byte, error) {
742 return decodeBytesInternal(b, r, ascendingBytesEscapes, true /* expectMarker */, false /* deepCopy */)
743}
744
745// ValidateDecodeBytesAscending is like DecodeBytesAscending, but discards the
746// decoded bytes. The remainder of the input buffer is returned on success.

Callers 1

Calls 1

decodeBytesInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…