Home
last modified time | relevance | path

Searched refs:bytes_transferred (Results 1 – 25 of 233) sorted by relevance

12345678910

/third_party/boost/libs/asio/test/
Dwrite_at.cpp123 size_t bytes_transferred = write_some_at(offset, buffers); in async_write_some_at() local
127 boost::system::error_code(), bytes_transferred)); in async_write_some_at()
151 size_t bytes_transferred = boost::asio::write_at(s, 0, buffers); in test_3_arg_const_buffer_write_at() local
152 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_3_arg_const_buffer_write_at()
156 bytes_transferred = boost::asio::write_at(s, 1234, buffers); in test_3_arg_const_buffer_write_at()
157 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_3_arg_const_buffer_write_at()
162 bytes_transferred = boost::asio::write_at(s, 0, buffers); in test_3_arg_const_buffer_write_at()
163 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_3_arg_const_buffer_write_at()
168 bytes_transferred = boost::asio::write_at(s, 1234, buffers); in test_3_arg_const_buffer_write_at()
169 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_3_arg_const_buffer_write_at()
[all …]
Dwrite.cpp126 size_t bytes_transferred = write_some(buffers); in async_write_some() local
130 boost::system::error_code(), bytes_transferred)); in async_write_some()
153 size_t bytes_transferred = boost::asio::write(s, buffers); in test_2_arg_zero_buffers_write() local
154 BOOST_ASIO_CHECK(bytes_transferred == 0); in test_2_arg_zero_buffers_write()
165 size_t bytes_transferred = boost::asio::write(s, buffers); in test_2_arg_const_buffer_write() local
166 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_2_arg_const_buffer_write()
171 bytes_transferred = boost::asio::write(s, buffers); in test_2_arg_const_buffer_write()
172 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_2_arg_const_buffer_write()
177 bytes_transferred = boost::asio::write(s, buffers); in test_2_arg_const_buffer_write()
178 BOOST_ASIO_CHECK(bytes_transferred == sizeof(write_data)); in test_2_arg_const_buffer_write()
[all …]
Dread_at.cpp130 size_t bytes_transferred = read_some_at(offset, buffers); in async_read_some_at() local
134 boost::system::error_code(), bytes_transferred)); in async_read_some_at()
158 size_t bytes_transferred = boost::asio::read_at(s, 0, buffers); in test_3_arg_mutable_buffer_read_at() local
159 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_3_arg_mutable_buffer_read_at()
164 bytes_transferred = boost::asio::read_at(s, 1234, buffers); in test_3_arg_mutable_buffer_read_at()
165 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_3_arg_mutable_buffer_read_at()
171 bytes_transferred = boost::asio::read_at(s, 0, buffers); in test_3_arg_mutable_buffer_read_at()
172 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_3_arg_mutable_buffer_read_at()
178 bytes_transferred = boost::asio::read_at(s, 1234, buffers); in test_3_arg_mutable_buffer_read_at()
179 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_3_arg_mutable_buffer_read_at()
[all …]
Dread.cpp126 size_t bytes_transferred = read_some(buffers); in async_read_some() local
130 boost::system::error_code(), bytes_transferred)); in async_read_some()
151 size_t bytes_transferred = boost::asio::read(s, buffers); in test_2_arg_zero_buffers_read() local
152 BOOST_ASIO_CHECK(bytes_transferred == 0); in test_2_arg_zero_buffers_read()
165 size_t bytes_transferred = boost::asio::read(s, buffers); in test_2_arg_mutable_buffer_read() local
166 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_2_arg_mutable_buffer_read()
172 bytes_transferred = boost::asio::read(s, buffers); in test_2_arg_mutable_buffer_read()
173 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_2_arg_mutable_buffer_read()
179 bytes_transferred = boost::asio::read(s, buffers); in test_2_arg_mutable_buffer_read()
180 BOOST_ASIO_CHECK(bytes_transferred == sizeof(read_data)); in test_2_arg_mutable_buffer_read()
[all …]
/third_party/boost/libs/beast/test/doc/
Dcore_4_layers.cpp108 void operator()(error_code ec, std::size_t bytes_transferred) in operator ()()
111 stream_.bytes_read_ += bytes_transferred; in operator ()()
113 this->complete_now(ec, bytes_transferred); in operator ()()
154 void operator()(error_code ec, std::size_t bytes_transferred) in operator ()()
157 stream_.bytes_written_ += bytes_transferred; in operator ()()
159 this->complete_now(ec, bytes_transferred); in operator ()()
213 auto const bytes_transferred = next_layer_.read_some(buffers); in read_some() local
214 bytes_read_ += bytes_transferred; in read_some()
215 return bytes_transferred; in read_some()
222 auto const bytes_transferred = next_layer_.read_some(buffers, ec); in read_some() local
[all …]
/third_party/boost/boost/asio/ssl/detail/
Dbuffered_handshake_op.hpp48 std::size_t& bytes_transferred) const in operator ()()
50 return this->process(eng, ec, bytes_transferred, in operator ()()
58 const std::size_t& bytes_transferred) const in call_handler()
60 handler(ec, bytes_transferred); in call_handler()
67 std::size_t& bytes_transferred, in process() argument
77 || bytes_transferred == total_buffer_size_) in process()
86 if (bytes_transferred >= accumulated_size + buffer.size()) in process()
96 if (bytes_transferred > accumulated_size) in process()
97 buffer = buffer + (bytes_transferred - accumulated_size); in process()
101 bytes_transferred += buffer.size(); in process()
[all …]
/third_party/boost/libs/asio/include/boost/asio/ssl/detail/
Dbuffered_handshake_op.hpp48 std::size_t& bytes_transferred) const in operator ()()
50 return this->process(eng, ec, bytes_transferred, in operator ()()
58 const std::size_t& bytes_transferred) const in call_handler()
60 handler(ec, bytes_transferred); in call_handler()
67 std::size_t& bytes_transferred, in process() argument
77 || bytes_transferred == total_buffer_size_) in process()
86 if (bytes_transferred >= accumulated_size + buffer.size()) in process()
96 if (bytes_transferred > accumulated_size) in process()
97 buffer = buffer + (bytes_transferred - accumulated_size); in process()
101 bytes_transferred += buffer.size(); in process()
[all …]
/third_party/boost/boost/beast/_experimental/http/impl/
Dicy_stream.hpp86 std::size_t bytes_transferred, in operator ()() argument
108 s_.n_ += static_cast<char>(bytes_transferred); in operator ()()
125 bytes_transferred = net::buffer_copy( in operator ()()
127 s_.n_ -= static_cast<char>(bytes_transferred); in operator ()()
130 s_.buf_ + bytes_transferred, in operator ()()
131 sizeof(s_.buf_) - bytes_transferred); in operator ()()
149 n_ = bytes_transferred; in operator ()()
161 bytes_transferred = n_; in operator ()()
163 this->complete_now(ec, bytes_transferred); in operator ()()
235 std::size_t bytes_transferred; in read_some() local
[all …]
/third_party/boost/libs/beast/include/boost/beast/_experimental/http/impl/
Dicy_stream.hpp86 std::size_t bytes_transferred, in operator ()() argument
108 s_.n_ += static_cast<char>(bytes_transferred); in operator ()()
125 bytes_transferred = net::buffer_copy( in operator ()()
127 s_.n_ -= static_cast<char>(bytes_transferred); in operator ()()
130 s_.buf_ + bytes_transferred, in operator ()()
131 sizeof(s_.buf_) - bytes_transferred); in operator ()()
149 n_ = bytes_transferred; in operator ()()
161 bytes_transferred = n_; in operator ()()
163 this->complete_now(ec, bytes_transferred); in operator ()()
235 std::size_t bytes_transferred; in read_some() local
[all …]
/third_party/boost/boost/beast/http/impl/
Dwrite.hpp132 std::size_t bytes_transferred) in operator ()() argument
135 sr_.consume(bytes_transferred); in operator ()()
136 this->complete_now(ec, bytes_transferred); in operator ()()
200 std::size_t bytes_transferred = 0) argument
229 bytes_transferred_ += bytes_transferred;
285 error_code ec, std::size_t bytes_transferred) in operator ()() argument
287 this->complete_now(ec, bytes_transferred); in operator ()()
424 std::size_t bytes_transferred = 0; member in boost::beast::http::detail::write_some_lambda
438 bytes_transferred = in operator ()()
450 std::size_t bytes_transferred = 0; member in boost::beast::http::detail::write_lambda
[all …]
Dread.hpp110 std::size_t bytes_transferred) in operator ()() argument
114 this->complete_now(ec, bytes_transferred); in operator ()()
177 std::size_t bytes_transferred = 0) argument
217 b_.commit(bytes_transferred);
220 BOOST_ASSERT(bytes_transferred == 0);
275 void operator()(Self& self, error_code ec = {}, std::size_t bytes_transferred = 0) in operator ()() argument
303 bytes_transferred_ += bytes_transferred;
349 bytes_transferred = in read_some() local
351 b.commit(bytes_transferred); in read_some()
354 BOOST_ASSERT(bytes_transferred == 0); in read_some()
[all …]
/third_party/boost/libs/beast/include/boost/beast/http/impl/
Dwrite.hpp132 std::size_t bytes_transferred) in operator ()() argument
135 sr_.consume(bytes_transferred); in operator ()()
136 this->complete_now(ec, bytes_transferred); in operator ()()
200 std::size_t bytes_transferred = 0) argument
229 bytes_transferred_ += bytes_transferred;
285 error_code ec, std::size_t bytes_transferred) in operator ()() argument
287 this->complete_now(ec, bytes_transferred); in operator ()()
424 std::size_t bytes_transferred = 0; member in boost::beast::http::detail::write_some_lambda
438 bytes_transferred = in operator ()()
450 std::size_t bytes_transferred = 0; member in boost::beast::http::detail::write_lambda
[all …]
Dread.hpp110 std::size_t bytes_transferred) in operator ()() argument
114 this->complete_now(ec, bytes_transferred); in operator ()()
177 std::size_t bytes_transferred = 0) argument
217 b_.commit(bytes_transferred);
220 BOOST_ASSERT(bytes_transferred == 0);
275 void operator()(Self& self, error_code ec = {}, std::size_t bytes_transferred = 0) in operator ()() argument
303 bytes_transferred_ += bytes_transferred;
349 bytes_transferred = in read_some() local
351 b.commit(bytes_transferred); in read_some()
354 BOOST_ASSERT(bytes_transferred == 0); in read_some()
[all …]
/third_party/boost/libs/asio/include/boost/asio/detail/
Dnull_socket_service.hpp281 const std::size_t bytes_transferred = 0; in async_send() local
283 handler, ec, bytes_transferred)); in async_send()
292 const std::size_t bytes_transferred = 0; in async_send() local
294 handler, ec, bytes_transferred)); in async_send()
322 const std::size_t bytes_transferred = 0; in async_receive() local
324 handler, ec, bytes_transferred)); in async_receive()
333 const std::size_t bytes_transferred = 0; in async_receive() local
335 handler, ec, bytes_transferred)); in async_receive()
367 const std::size_t bytes_transferred = 0; in async_receive_with_flags() local
369 handler, ec, bytes_transferred)); in async_receive_with_flags()
[all …]
/third_party/boost/boost/asio/detail/
Dnull_socket_service.hpp281 const std::size_t bytes_transferred = 0; in async_send() local
283 handler, ec, bytes_transferred)); in async_send()
292 const std::size_t bytes_transferred = 0; in async_send() local
294 handler, ec, bytes_transferred)); in async_send()
322 const std::size_t bytes_transferred = 0; in async_receive() local
324 handler, ec, bytes_transferred)); in async_receive()
333 const std::size_t bytes_transferred = 0; in async_receive() local
335 handler, ec, bytes_transferred)); in async_receive()
367 const std::size_t bytes_transferred = 0; in async_receive_with_flags() local
369 handler, ec, bytes_transferred)); in async_receive_with_flags()
[all …]
/third_party/boost/boost/asio/
Dcompletion_condition.hpp69 std::size_t operator()(const Error& err, std::size_t bytes_transferred) in operator ()() argument
71 return (!!err || bytes_transferred >= minimum_) in operator ()()
90 std::size_t operator()(const Error& err, std::size_t bytes_transferred) in operator ()() argument
92 return (!!err || bytes_transferred >= size_) ? 0 : in operator ()()
93 (size_ - bytes_transferred < default_max_transfer_size in operator ()()
94 ? size_ - bytes_transferred : std::size_t(default_max_transfer_size)); in operator ()()
/third_party/boost/libs/asio/include/boost/asio/
Dcompletion_condition.hpp69 std::size_t operator()(const Error& err, std::size_t bytes_transferred) in operator ()() argument
71 return (!!err || bytes_transferred >= minimum_) in operator ()()
90 std::size_t operator()(const Error& err, std::size_t bytes_transferred) in operator ()() argument
92 return (!!err || bytes_transferred >= size_) ? 0 : in operator ()()
93 (size_ - bytes_transferred < default_max_transfer_size in operator ()()
94 ? size_ - bytes_transferred : std::size_t(default_max_transfer_size)); in operator ()()
/third_party/boost/boost/beast/websocket/impl/
Dread.hpp83 std::size_t bytes_transferred = 0, argument
188 impl.rd_buf.commit(bytes_transferred);
425 impl.rd_buf.commit(bytes_transferred);
438 bytes_transferred = net::buffer_copy(cb_,
441 bytes_transferred, cb_);
442 impl.rd_remain -= bytes_transferred;
455 bytes_written_ += bytes_transferred;
456 impl.rd_size += bytes_transferred;
457 impl.rd_buf.consume(bytes_transferred);
478 BOOST_ASSERT(bytes_transferred > 0);
[all …]
Dwrite.hpp145 std::size_t bytes_transferred = 0,
156 std::size_t bytes_transferred, in operator ()() argument
345 bytes_transferred - impl.wr_fb.size(); in operator ()()
379 bytes_transferred_ += bytes_transferred; in operator ()()
429 n = bytes_transferred - impl.wr_fb.size(); in operator ()()
597 auto const bytes_transferred = in write_some() local
601 return bytes_transferred; in write_some()
618 std::size_t bytes_transferred = 0; in write_some() local
621 return bytes_transferred; in write_some()
648 b, cb, fin, bytes_transferred, ec); in write_some()
[all …]
/third_party/boost/libs/beast/include/boost/beast/websocket/impl/
Dread.hpp83 std::size_t bytes_transferred = 0, argument
188 impl.rd_buf.commit(bytes_transferred);
425 impl.rd_buf.commit(bytes_transferred);
438 bytes_transferred = net::buffer_copy(cb_,
441 bytes_transferred, cb_);
442 impl.rd_remain -= bytes_transferred;
455 bytes_written_ += bytes_transferred;
456 impl.rd_size += bytes_transferred;
457 impl.rd_buf.consume(bytes_transferred);
478 BOOST_ASSERT(bytes_transferred > 0);
[all …]
Dwrite.hpp145 std::size_t bytes_transferred = 0,
156 std::size_t bytes_transferred, in operator ()() argument
345 bytes_transferred - impl.wr_fb.size(); in operator ()()
379 bytes_transferred_ += bytes_transferred; in operator ()()
429 n = bytes_transferred - impl.wr_fb.size(); in operator ()()
597 auto const bytes_transferred = in write_some() local
601 return bytes_transferred; in write_some()
618 std::size_t bytes_transferred = 0; in write_some() local
621 return bytes_transferred; in write_some()
648 b, cb, fin, bytes_transferred, ec); in write_some()
[all …]
/third_party/boost/boost/beast/core/impl/
Dbuffered_read_stream.hpp60 std::size_t bytes_transferred) in operator ()() argument
93 s_.buffer_.commit(bytes_transferred); in operator ()()
97 bytes_transferred = in operator ()()
99 s_.buffer_.consume(bytes_transferred); in operator ()()
102 this->complete_now(ec, bytes_transferred); in operator ()()
208 auto bytes_transferred = in read_some() local
210 buffer_.consume(bytes_transferred); in read_some()
211 return bytes_transferred; in read_some()
/third_party/boost/libs/beast/include/boost/beast/core/detail/impl/
Dread.hpp74 std::size_t bytes_transferred, in operator ()() argument
88 b_.commit(bytes_transferred); in operator ()()
89 total_ += bytes_transferred; in operator ()()
169 auto const bytes_transferred = detail::read( in read() local
173 return bytes_transferred; in read()
205 std::size_t const bytes_transferred = in read() local
207 buffer.commit(bytes_transferred); in read()
208 total += bytes_transferred; in read()
/third_party/boost/boost/beast/core/detail/impl/
Dread.hpp74 std::size_t bytes_transferred, in operator ()() argument
88 b_.commit(bytes_transferred); in operator ()()
89 total_ += bytes_transferred; in operator ()()
169 auto const bytes_transferred = detail::read( in read() local
173 return bytes_transferred; in read()
205 std::size_t const bytes_transferred = in read() local
207 buffer.commit(bytes_transferred); in read()
208 total += bytes_transferred; in read()
/third_party/boost/libs/beast/include/boost/beast/core/impl/
Dbuffered_read_stream.hpp60 std::size_t bytes_transferred) in operator ()() argument
93 s_.buffer_.commit(bytes_transferred); in operator ()()
97 bytes_transferred = in operator ()()
99 s_.buffer_.consume(bytes_transferred); in operator ()()
102 this->complete_now(ec, bytes_transferred); in operator ()()
208 auto bytes_transferred = in read_some() local
210 buffer_.consume(bytes_transferred); in read_some()
211 return bytes_transferred; in read_some()

12345678910