| 96 | |
| 97 | template <typename Const_Buffers> |
| 98 | size_t write_some(const Const_Buffers& buffers) |
| 99 | { |
| 100 | size_t n = boost::asio::buffer_copy( |
| 101 | boost::asio::buffer(data_, length_) + position_, |
| 102 | buffers, next_write_length_); |
| 103 | position_ += n; |
| 104 | return n; |
| 105 | } |
| 106 | |
| 107 | template <typename Const_Buffers> |
| 108 | size_t write_some(const Const_Buffers& buffers, boost::system::error_code& ec) |