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)
| 766 | // input buffer and the decoded string are returned. Note that the returned |
| 767 | // string may share storage with the input buffer. |
| 768 | func 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 |
no test coverage detected
searching dependent graphs…