boost::capy::any_write_sink::write_some

Initiate a partial write operation.

Synopsis

template<ConstBufferSequence CB>
auto
write_some(CB buffers);

Description

Writes one or more bytes from the provided buffer sequence. May consume less than the full sequence.

Immediate Completion

The operation completes immediately without suspending the calling coroutine when:

  • The buffer sequence is empty, returning `{error_code{}, 0}`.

  • The underlying sink's awaitable reports immediate readiness via `await_ready`.

This is a partial operation and may not process the entire buffer sequence. Use write for guaranteed complete transfer.

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 containing data to write.

Created with MrDocs