(ix *Index, trigram uint32, restrict []uint32)
| 224 | } |
| 225 | |
| 226 | func (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 | |
| 239 | func (r *postReader) max() int { |
| 240 | return int(r.count) |
no test coverage detected