Beast Logo

PrevUpHomeNext

buffer_prefix

Returns a prefix of a constant buffer.

boost::asio::const_buffer
buffer_prefix(
    std::size_t n,
    boost::asio::const_buffer buffer);

Returns a prefix of a mutable buffer.

boost::asio::mutable_buffer
buffer_prefix(
    std::size_t n,
    boost::asio::mutable_buffer buffer);

Returns a prefix of a buffer sequence.

template<
    class BufferSequence>
buffer_prefix_view< BufferSequence >
buffer_prefix(
    std::size_t n,
    BufferSequence const& buffers);

PrevUpHomeNext