()
| 257 | } |
| 258 | |
| 259 | func (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 | |
| 276 | func (r *postMapReader) nextId() bool { |
| 277 | for r.count > 0 { |
no test coverage detected