boost::capy::any_buffer_sink::write

Write all data from a buffer sequence.

Synopsis

template<ConstBufferSequence CB>
io_task<std::size_t>
write(CB buffers);

Description

Writes all data from the buffer sequence to the underlying sink. This method satisfies the WriteSink concept.

When the wrapped type provides native WriteSink support, each window is forwarded directly. Otherwise the data is copied into the sink via prepare and commit.

Preconditions

The wrapper must contain a valid sink (has_value() == true).

Return Value

An awaitable yielding (error_code,std::size_t).

Parameters

Name Description

buffers

The buffer sequence to write.

Created with MrDocs