MCPcopy
hub / github.com/dgraph-io/badger / Key

Method Key

iterator.go:69–71  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
69func (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

Callers 2

StringMethod · 0.95
yieldItemValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected