MCPcopy Create free account
hub / github.com/alibaba/async_simple / operator()

Method operator()

demo_example/asio/asio/impl/write.hpp:880–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 4

async_writeFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45
consumeMethod · 0.45

Tested by

no test coverage detected