| 878 | #endif // defined(ASIO_HAS_MOVE) |
| 879 | |
| 880 | void operator()(const asio::error_code& ec, |
| 881 | std::size_t bytes_transferred, int start = 0) |
| 882 | { |
| 883 | switch (start) |
| 884 | { |
| 885 | case 1: |
| 886 | async_write(stream_, buffers_.data(0, buffers_.size()), |
| 887 | ASIO_MOVE_CAST(CompletionCondition)(completion_condition_), |
| 888 | ASIO_MOVE_CAST(write_dynbuf_v2_op)(*this)); |
| 889 | return; default: |
| 890 | buffers_.consume(bytes_transferred); |
| 891 | ASIO_MOVE_OR_LVALUE(WriteHandler)(handler_)(ec, |
| 892 | static_cast<const std::size_t&>(bytes_transferred)); |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | //private: |
| 897 | AsyncWriteStream& stream_; |
nothing calls this directly
no test coverage detected