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)
| 632 | // encoded value. The encoded bytes are append to the supplied buffer |
| 633 | // and the resulting buffer is returned. |
| 634 | func EncodeBytesAscending(b []byte, data []byte) []byte { |
| 635 | return encodeBytesAscendingWithTerminatorAndPrefix(b, data, ascendingBytesEscapes.escapedTerm, bytesMarker) |
| 636 | } |
| 637 | |
| 638 | // EncodeNextBytesAscending encodes the []byte value with an extra 0x00 byte |
| 639 | // appended before encoding. It's equivalent to |
no test coverage detected
searching dependent graphs…