MCPcopy Create free account
hub / github.com/google/codesearch / listAt

Method listAt

index/read.go:177–183  ·  view source on GitHub ↗

listAt returns the index list entry at the given offset.

(off uint32)

Source from the content-addressed store, hash-verified

175
176// listAt returns the index list entry at the given offset.
177func (ix *Index) listAt(off uint32) (trigram, count, offset uint32) {
178 d := ix.slice(ix.postIndex+off, postEntrySize)
179 trigram = uint32(d[0])<<16 | uint32(d[1])<<8 | uint32(d[2])
180 count = binary.BigEndian.Uint32(d[3:])
181 offset = binary.BigEndian.Uint32(d[3+4:])
182 return
183}
184
185func (ix *Index) dumpPosting() {
186 d := ix.slice(ix.postIndex, postEntrySize*ix.numPost)

Callers 1

loadMethod · 0.80

Calls 1

sliceMethod · 0.95

Tested by

no test coverage detected