boost::capy::any_buffer_sink::write_some

Write some data from a buffer sequence.

Synopsis

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

Description

Writes one or more bytes from the buffer sequence to the underlying sink. May consume less than the full sequence.

When the wrapped type provides native WriteSink support, the operation forwards directly. Otherwise it is synthesized from prepare and commit with a buffer copy.

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