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

Function DecodeUnsafeStringDescending

pkg/util/encoding/encoding.go:779–782  ·  view source on GitHub ↗

DecodeUnsafeStringDescending decodes a string value from the input buffer which was encoded using EncodeStringDescending or EncodeBytesDescending. The r []byte is used as a temporary buffer in order to avoid memory allocations. The remainder of the input buffer and the decoded string are returned. N

(b []byte, r []byte)

Source from the content-addressed store, hash-verified

777// returned. Note that the returned string may share storage with the input
778// buffer.
779func DecodeUnsafeStringDescending(b []byte, r []byte) ([]byte, string, error) {
780 b, r, err := DecodeBytesDescending(b, r)
781 return b, unsafeString(r), err
782}
783
784// EncodeNullAscending encodes a NULL value. The encodes bytes are appended to the
785// supplied buffer and the final buffer is returned. The encoded value for a

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls 2

DecodeBytesDescendingFunction · 0.85
unsafeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…