Beast Logo

PrevUpHomeNext

buffers

Return an object representing a ConstBufferSequence.

Synopsis

Defined in header <beast/core/ostream.hpp>

template<
    class ConstBufferSequence>
implementation-defined
buffers(
    ConstBufferSequence const& b);
Description

This function wraps a reference to a buffer sequence and permits the following operation:

Example
multi_buffer b;
...
std::cout << buffers(b.data()) << std::endl;
Parameters

Name

Description

b

An object meeting the requirements of ConstBufferSequence to be streamed. The implementation will make a copy of this object. Ownership of the underlying memory is not transferred, the application is still responsible for managing its lifetime.

Convenience header <beast/core.hpp>


PrevUpHomeNext