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

Method load

index/merge.go:259–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259func (r *postMapReader) load() {
260 if r.triNum >= uint32(r.ix.numPost) {
261 r.trigram = ^uint32(0)
262 r.count = 0
263 r.fileid = ^uint32(0)
264 return
265 }
266 r.trigram, r.count, r.offset = r.ix.listAt(r.triNum * postEntrySize)
267 if r.count == 0 {
268 r.fileid = ^uint32(0)
269 return
270 }
271 r.d = r.ix.slice(r.ix.postData+r.offset+3, -1)
272 r.oldid = ^uint32(0)
273 r.i = 0
274}
275
276func (r *postMapReader) nextId() bool {
277 for r.count > 0 {

Callers 2

initMethod · 0.95
nextTrigramMethod · 0.95

Calls 2

listAtMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected