| Home | Libraries | People | FAQ | More

###### buffers_prefix_view::buffers_prefix_view (2 of 3 overloads)

Construct a buffer sequence prefix.

<h7> Synopsis </h7>

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

<h7> Description </h7><h7> Parameters </h7>

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.