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)
| 498 | // encoded value. The encoded bytes are append to the supplied buffer |
| 499 | // and the resulting buffer is returned. |
| 500 | func 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 |
no test coverage detected
searching dependent graphs…