EncodeVarintDescending encodes the int64 value so that it sorts in reverse order, from largest to smallest.
(b []byte, v int64)
| 253 | // EncodeVarintDescending encodes the int64 value so that it sorts in reverse |
| 254 | // order, from largest to smallest. |
| 255 | func EncodeVarintDescending(b []byte, v int64) []byte { |
| 256 | return EncodeVarintAscending(b, ^v) |
| 257 | } |
| 258 | |
| 259 | // getVarintLen returns the encoded length of an encoded varint. Assumes the |
| 260 | // slice has at least one byte. |
no test coverage detected
searching dependent graphs…