boost::capy::any_buffer_sink::commit_eof

Commit final bytes and signal end‐of‐stream.

Synopsis

auto
commit_eof(std::size_t n);

Description

Commits n bytes written to the buffers returned by the most recent call to prepare and finalizes the sink. After success, no further operations are permitted.

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