Lines Matching refs:asio
15 #include "asio/detail/config.hpp"
16 #include "asio/buffer.hpp"
17 #include "asio/detail/array_fwd.hpp"
18 #include "asio/detail/socket_types.hpp"
20 #include "asio/detail/push_options.hpp"
22 namespace asio {
45 const asio::mutable_buffer& buffer)
47 init_iov_base(iov.iov_base, asio::buffer_cast<void*>(buffer));
48 iov.iov_len = asio::buffer_size(buffer);
52 const asio::const_buffer& buffer)
55 asio::buffer_cast<const void*>(buffer)));
56 iov.iov_len = asio::buffer_size(buffer);
75 total_buffer_size_ += asio::buffer_size(buffer);
100 if (asio::buffer_size(Buffer(*iter)) > 0)
112 asio::buffer_cast<const void*>(buffer);
123 if (asio::buffer_size(buffer) != 0)
136 class buffer_sequence_adapter<Buffer, asio::mutable_buffers_1>
141 const asio::mutable_buffers_1& buffer_sequence)
144 total_buffer_size_ = asio::buffer_size(buffer_sequence);
162 static bool all_empty(const asio::mutable_buffers_1& buffer_sequence)
164 return asio::buffer_size(buffer_sequence) == 0;
167 static void validate(const asio::mutable_buffers_1& buffer_sequence)
169 asio::buffer_cast<const void*>(buffer_sequence);
172 static Buffer first(const asio::mutable_buffers_1& buffer_sequence)
183 class buffer_sequence_adapter<Buffer, asio::const_buffers_1>
188 const asio::const_buffers_1& buffer_sequence)
191 total_buffer_size_ = asio::buffer_size(buffer_sequence);
209 static bool all_empty(const asio::const_buffers_1& buffer_sequence)
211 return asio::buffer_size(buffer_sequence) == 0;
214 static void validate(const asio::const_buffers_1& buffer_sequence)
216 asio::buffer_cast<const void*>(buffer_sequence);
219 static Buffer first(const asio::const_buffers_1& buffer_sequence)
239 total_buffer_size_ = asio::buffer_size(buffer_sequence[0])
240 + asio::buffer_size(buffer_sequence[1]);
260 return asio::buffer_size(buffer_sequence[0]) == 0
261 && asio::buffer_size(buffer_sequence[1]) == 0;
266 asio::buffer_cast<const void*>(buffer_sequence[0]);
267 asio::buffer_cast<const void*>(buffer_sequence[1]);
272 return Buffer(asio::buffer_size(buffer_sequence[0]) != 0
292 total_buffer_size_ = asio::buffer_size(buffer_sequence[0])
293 + asio::buffer_size(buffer_sequence[1]);
313 return asio::buffer_size(buffer_sequence[0]) == 0
314 && asio::buffer_size(buffer_sequence[1]) == 0;
319 asio::buffer_cast<const void*>(buffer_sequence[0]);
320 asio::buffer_cast<const void*>(buffer_sequence[1]);
325 return Buffer(asio::buffer_size(buffer_sequence[0]) != 0
336 } // namespace asio
338 #include "asio/detail/pop_options.hpp"
340 # include "asio/detail/impl/buffer_sequence_adapter.ipp"