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

Method Paths

index/read.go:142–154  ·  view source on GitHub ↗

Paths returns the list of indexed paths.

()

Source from the content-addressed store, hash-verified

140
141// Paths returns the list of indexed paths.
142func (ix *Index) Paths() []string {
143 off := ix.pathData
144 var x []string
145 for {
146 s := ix.str(off)
147 if len(s) == 0 {
148 break
149 }
150 x = append(x, string(s))
151 off += uint32(len(s) + 1)
152 }
153 return x
154}
155
156// NameBytes returns the name corresponding to the given fileid.
157func (ix *Index) NameBytes(fileid uint32) []byte {

Callers 2

mainFunction · 0.80
MergeFunction · 0.80

Calls 1

strMethod · 0.95

Tested by

no test coverage detected