| Home | Libraries | People | FAQ | More

###### 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);

Description 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.