boost::capy::any_buffer_source::consume

Consume bytes from the source.

Synopsis

void
consume(std::size_t n) noexcept;

Description

Advances the internal read position of the underlying source by the specified number of bytes. The next call to pull returns data starting after the consumed bytes.

Preconditions

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

Parameters

Name Description

n

The number of bytes to consume. Must not exceed the total size of buffers returned by the previous pull.

Created with MrDocs