boost::corosio::io_buffer_param::copy_to

Fill an array with buffers from the sequence.

Synopsis

std::size_t
copy_to(
    capy::mutable_buffer* dest,
    std::size_t n) const noexcept;

Description

Copies buffer descriptors from the sequence into the destination array, skipping any zero‐size buffers. This ensures the output contains only buffers with actual data, suitable for direct use with system calls.

Return Value

The number of non‐zero buffers copied.

Parameters

Name Description

dest

Pointer to array of mutable buffer descriptors.

n

Maximum number of buffers to copy.

Created with MrDocs