add adds the chunk to the postHeap. All adds must be called before the first call to next.
(ch *postChunk)
| 368 | // add adds the chunk to the postHeap. |
| 369 | // All adds must be called before the first call to next. |
| 370 | func (h *postHeap) add(ch *postChunk) { |
| 371 | if len(ch.m) > 0 { |
| 372 | ch.e = ch.m[0] |
| 373 | ch.m = ch.m[1:] |
| 374 | h.push(ch) |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | // empty reports whether the postHeap is empty. |
| 379 | func (h *postHeap) empty() bool { |