EncodeUint64Ascending encodes the uint64 value using a big-endian 8 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.
(b []byte, v uint64)
| 183 | // representation. The bytes are appended to the supplied buffer and |
| 184 | // the final buffer is returned. |
| 185 | func EncodeUint64Ascending(b []byte, v uint64) []byte { |
| 186 | return append(b, |
| 187 | byte(v>>56), byte(v>>48), byte(v>>40), byte(v>>32), |
| 188 | byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) |
| 189 | } |
| 190 | |
| 191 | // EncodeUint64Descending encodes the uint64 value so that it sorts in |
| 192 | // reverse order, from largest to smallest. |
no outgoing calls
no test coverage detected
searching dependent graphs…