listAt returns the index list entry at the given offset.
(off uint32)
| 175 | |
| 176 | // listAt returns the index list entry at the given offset. |
| 177 | func (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 | |
| 185 | func (ix *Index) dumpPosting() { |
| 186 | d := ix.slice(ix.postIndex, postEntrySize*ix.numPost) |