boost::asio::buffer_copy

buffer_copy overloads

Synopses

Declared in <boost/asio/buffer.hpp>

Copies bytes from a source buffer sequence to a target buffer sequence.

template<
    typename MutableBufferSequence,
    typename ConstBufferSequence>
size_t
buffer_copy(
    MutableBufferSequence const& target,
    ConstBufferSequence const& source) noexcept;

Copies a limited number of bytes from a source buffer sequence to a target buffer sequence.

template<
    typename MutableBufferSequence,
    typename ConstBufferSequence>
size_t
buffer_copy(
    MutableBufferSequence const& target,
    ConstBufferSequence const& source,
    size_t max_bytes_to_copy) noexcept;

Return Value

The number of bytes copied.

Parameters

Name

Description

target

A modifiable buffer sequence representing the memory regions to which the bytes will be copied.

source

A non‐modifiable buffer sequence representing the memory regions from which the bytes will be copied.

max_bytes_to_copy

The maximum number of bytes to be copied.

Created with MrDocs