KeyCopy returns a copy of the key of the item, writing it to dst slice. If nil is passed, or capacity of dst isn't sufficient, a new slice would be allocated and returned.
(dst []byte)
| 74 | // If nil is passed, or capacity of dst isn't sufficient, a new slice would be allocated and |
| 75 | // returned. |
| 76 | func (item *Item) KeyCopy(dst []byte) []byte { |
| 77 | return y.SafeCopy(dst, item.key) |
| 78 | } |
| 79 | |
| 80 | // Version returns the commit timestamp of the item. |
| 81 | func (item *Item) Version() uint64 { |