| 399 | } |
| 400 | |
| 401 | void nextImpl() override |
| 402 | { |
| 403 | if (on_flush_callback) |
| 404 | on_flush_callback(); |
| 405 | |
| 406 | if (out->isCanceled()) |
| 407 | return; |
| 408 | |
| 409 | out->write(working_buffer.begin(), offset()); |
| 410 | /// Propagate the explicit flush to the nested buffer so that small result blocks |
| 411 | /// are streamed to the underlying sink immediately instead of waiting for the |
| 412 | /// nested buffer to fill up. |
| 413 | out->next(); |
| 414 | } |
| 415 | |
| 416 | void finalizeImpl() override { next(); } |
| 417 |
nothing calls this directly
no test coverage detected