MCPcopy
hub / github.com/google/codesearch / Name

Method Name

index/read.go:172–174  ·  view source on GitHub ↗

Name returns the name corresponding to the given fileid.

(fileid uint32)

Source from the content-addressed store, hash-verified

170
171// Name returns the name corresponding to the given fileid.
172func (ix *Index) Name(fileid uint32) string {
173 return string(ix.NameBytes(fileid))
174}
175
176// listAt returns the index list entry at the given offset.
177func (ix *Index) listAt(off uint32) (trigram, count, offset uint32) {

Callers 11

MainFunction · 0.80
mmapFileFunction · 0.80
TestTrivialPostingFunction · 0.80
mmapFileFunction · 0.80
MergeFunction · 0.80
testTrivialWriteFunction · 0.80
TestMergeFunction · 0.80
FlushMethod · 0.80
flushPostMethod · 0.80
bufCreateFunction · 0.80
mmapFileFunction · 0.80

Calls 1

NameBytesMethod · 0.95

Tested by 3

TestTrivialPostingFunction · 0.64
testTrivialWriteFunction · 0.64
TestMergeFunction · 0.64