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

Method init

index/read.go:226–237  ·  view source on GitHub ↗
(ix *Index, trigram uint32, restrict []uint32)

Source from the content-addressed store, hash-verified

224}
225
226func (r *postReader) init(ix *Index, trigram uint32, restrict []uint32) {
227 count, offset := ix.findList(trigram)
228 if count == 0 {
229 return
230 }
231 r.ix = ix
232 r.count = count
233 r.offset = offset
234 r.fileid = ^uint32(0)
235 r.d = ix.slice(ix.postData+offset+3, -1)
236 r.restrict = restrict
237}
238
239func (r *postReader) max() int {
240 return int(r.count)

Callers 3

postingListMethod · 0.95
postingAndMethod · 0.95
postingOrMethod · 0.95

Calls 2

findListMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected