MCPcopy Index your code
hub / github.com/google/codesearch / str

Method str

index/read.go:162–169  ·  view source on GitHub ↗
(off uint32)

Source from the content-addressed store, hash-verified

160}
161
162func (ix *Index) str(off uint32) []byte {
163 str := ix.slice(off, -1)
164 i := bytes.IndexByte(str, '\x00')
165 if i < 0 {
166 corrupt()
167 }
168 return str[:i]
169}
170
171// Name returns the name corresponding to the given fileid.
172func (ix *Index) Name(fileid uint32) string {

Callers 2

PathsMethod · 0.95
NameBytesMethod · 0.95

Calls 2

sliceMethod · 0.95
corruptFunction · 0.85

Tested by

no test coverage detected