boost::capy::any_buffer_sink::commit

Commit bytes written to the prepared buffers.

Synopsis

auto
commit(std::size_t n);

Description

Commits n bytes written to the buffers returned by the most recent call to prepare. The operation may trigger underlying I/O.

Preconditions

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

Return Value

An awaitable yielding (error_code).

Parameters

Name Description

n

The number of bytes to commit.

Created with MrDocs