Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
http::serializer::consume

Consume buffer octets in the serialization.

Synopsis
void
consume(
    std::size_t n);
Description

This function should be called after one or more octets contained in the buffers provided in the prior call to next have been used.

After a call to consume, callers should check the return value of is_done to determine if the entire message has been serialized.

Parameters

Name

Description

n

The number of octets to consume. This number must be greater than zero and no greater than the number of octets in the buffers provided in the prior call to next.


PrevUpHomeNext