EncodeVarintDescending encodes the int64 value so that it sorts in reverse order, from largest to smallest.
(b []byte, v int64)
| 334 | // EncodeVarintDescending encodes the int64 value so that it sorts in reverse |
| 335 | // order, from largest to smallest. |
| 336 | func EncodeVarintDescending(b []byte, v int64) []byte { |
| 337 | return EncodeVarintAscending(b, ^v) |
| 338 | } |
| 339 | |
| 340 | // getVarintLen returns the encoded length of an encoded varint. Assumes the |
| 341 | // slice has at least one byte. |
no test coverage detected
searching dependent graphs…