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

Function DecodeUnsafeStringAscending

pkg/util/encoding/encoding.go:768–771  ·  view source on GitHub ↗

DecodeUnsafeStringAscending decodes a string value from the input buffer which was encoded using EncodeString or EncodeBytes. 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. Note that the returned

(b []byte, r []byte)

Source from the content-addressed store, hash-verified

766// input buffer and the decoded string are returned. Note that the returned
767// string may share storage with the input buffer.
768func DecodeUnsafeStringAscending(b []byte, r []byte) ([]byte, string, error) {
769 b, r, err := DecodeBytesAscending(b, r)
770 return b, unsafeString(r), err
771}
772
773// DecodeUnsafeStringDescending decodes a string value from the input buffer which
774// was encoded using EncodeStringDescending or EncodeBytesDescending. The r

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls 2

DecodeBytesAscendingFunction · 0.85
unsafeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…