boost::capy::any_buffer_sink::write_eof

Atomically write data and signal end‐of‐stream.

Synopsis

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

Description

Writes all data from the buffer sequence to the underlying sink and then signals end‐of‐stream.

When the wrapped type provides native WriteSink support, the final window is sent atomically via the underlying write_eof(buffers). Otherwise the data is synthesized through prepare, commit, and commit_eof.

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