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
buffers_prefix_view::buffers_prefix_view (2 of 3 overloads)

Construct a buffer sequence prefix.

Synopsis
buffers_prefix_view(
    std::size_t size,
    BufferSequence const& buffers);
Parameters

Name

Description

size

The maximum number of bytes in the prefix. If this is larger than the size of passed buffers, the resulting sequence will represent the entire input sequence.

buffers

The buffer sequence to adapt. A copy of the sequence will be made, but ownership of the underlying memory is not transferred. The copy is maintained for the lifetime of the view.


PrevUpHomeNext