Lines Matching defs:buffer_copy
495 * The @ref buffer_copy function may be used to copy raw bytes between
498 * In particular, when used with the @ref buffer_size, the @ref buffer_copy
504 * asio::buffer_copy(asio::buffer(data), buffers); @endcode
506 * Note that @ref buffer_copy is implemented in terms of @c memcpy, and
1096 /** @defgroup buffer_copy asio::buffer_copy
1098 * @brief The asio::buffer_copy function is used to copy bytes from a
1101 * The @c buffer_copy function is available in two forms:
1103 * @li A 2-argument form: @c buffer_copy(target, source)
1105 * @li A 3-argument form: @c buffer_copy(target, source, max_bytes_to_copy)
1119 * Note that @ref buffer_copy is implemented in terms of @c memcpy, and
1143 inline std::size_t buffer_copy(const mutable_buffer& target,
1173 inline std::size_t buffer_copy(const mutable_buffer& target,
1176 return buffer_copy(target, static_cast<const const_buffer&>(source));
1199 inline std::size_t buffer_copy(const mutable_buffer& target,
1202 return buffer_copy(target, const_buffer(source));
1225 inline std::size_t buffer_copy(const mutable_buffer& target,
1228 return buffer_copy(target, const_buffer(source));
1251 std::size_t buffer_copy(const mutable_buffer& target,
1263 std::size_t bytes_copied = buffer_copy(target_buffer, source_buffer);
1290 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1293 return buffer_copy(static_cast<const mutable_buffer&>(target), source);
1315 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1318 return buffer_copy(static_cast<const mutable_buffer&>(target),
1342 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1345 return buffer_copy(static_cast<const mutable_buffer&>(target),
1369 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1372 return buffer_copy(static_cast<const mutable_buffer&>(target),
1396 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1399 return buffer_copy(static_cast<const mutable_buffer&>(target), source);
1422 std::size_t buffer_copy(const MutableBufferSequence& target,
1434 std::size_t bytes_copied = buffer_copy(target_buffer, source_buffer);
1462 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1465 return buffer_copy(target, static_cast<const const_buffer&>(source));
1489 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1492 return buffer_copy(target, const_buffer(source));
1516 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1519 return buffer_copy(target, const_buffer(source));
1542 std::size_t buffer_copy(const MutableBufferSequence& target,
1563 std::size_t bytes_copied = buffer_copy(target_buffer, source_buffer);
1609 inline std::size_t buffer_copy(const mutable_buffer& target,
1612 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1638 inline std::size_t buffer_copy(const mutable_buffer& target,
1641 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1668 inline std::size_t buffer_copy(const mutable_buffer& target,
1671 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1698 inline std::size_t buffer_copy(const mutable_buffer& target,
1701 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1729 inline std::size_t buffer_copy(const mutable_buffer& target,
1732 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1758 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1761 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1787 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1790 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1817 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1820 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1847 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1850 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1878 inline std::size_t buffer_copy(const mutable_buffers_1& target,
1881 return buffer_copy(buffer(target, max_bytes_to_copy), source);
1909 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1912 return buffer_copy(target, buffer(source, max_bytes_to_copy));
1940 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1943 return buffer_copy(target, buffer(source, max_bytes_to_copy));
1972 inline std::size_t buffer_copy(const MutableBufferSequence& target,
1975 return buffer_copy(target, buffer(source, max_bytes_to_copy));
2004 inline std::size_t buffer_copy(const MutableBufferSequence& target,
2007 return buffer_copy(target, buffer(source, max_bytes_to_copy));
2035 std::size_t buffer_copy(const MutableBufferSequence& target,
2057 std::size_t bytes_copied = buffer_copy(target_buffer,