MCPcopy
hub / github.com/perkeep/perkeep / KeyBytes

Method KeyBytes

pkg/sorted/kv.go:128–128  ·  view source on GitHub ↗

KeyBytes returns the key as bytes. The returned bytes should not be written and are invalid after the next call to Next or Close. TODO(bradfitz): rename this and change it to return a mem.RO instead?

()

Source from the content-addressed store, hash-verified

126 // TODO(bradfitz): rename this and change it to return a
127 // mem.RO instead?
128 KeyBytes() []byte
129
130 // Value returns the value of the current key/value pair.
131 // Only valid after a call to Next returns true.

Callers 8

EnumerateBlobsMethod · 0.65
OpenWholeRefMethod · 0.65
EnumerateBlobsMethod · 0.65
KeyBytesMethod · 0.65
testEnumerateFunction · 0.65
fixMissingWholeRefMethod · 0.65
initNeededMapsMethod · 0.65
scanPrefixMethod · 0.65

Implementers 6

memIterpkg/sorted/mem.go
iterpkg/sorted/kvfile/kvfile.go
iterpkg/sorted/mongo/mongokv.go
iterpkg/sorted/buffer/buffer.go
iterpkg/sorted/sqlkv/sqlkv.go
iterpkg/sorted/leveldb/leveldb.go

Calls

no outgoing calls

Tested by

no test coverage detected