(key []byte, seq uint64)
| 118 | } |
| 119 | |
| 120 | func EncodeListKey(key []byte, seq uint64) []byte { |
| 121 | buf := make([]byte, len(key)+8) |
| 122 | binary.LittleEndian.PutUint64(buf[:8], seq) |
| 123 | copy(buf[8:], key[:]) |
| 124 | return buf |
| 125 | } |
| 126 | |
| 127 | func DecodeListKey(buf []byte) ([]byte, uint64) { |
| 128 | seq := binary.LittleEndian.Uint64(buf[:8]) |
no outgoing calls