Key returns the key. Key is only valid as long as item is valid, or transaction is valid. If you need to use it outside its validity, please use KeyCopy.
()
| 67 | // Key is only valid as long as item is valid, or transaction is valid. If you need to use it |
| 68 | // outside its validity, please use KeyCopy. |
| 69 | func (item *Item) Key() []byte { |
| 70 | return item.key |
| 71 | } |
| 72 | |
| 73 | // KeyCopy returns a copy of the key of the item, writing it to dst slice. |
| 74 | // If nil is passed, or capacity of dst isn't sufficient, a new slice would be allocated and |
no outgoing calls
no test coverage detected