10 #ifndef BOOST_BEAST_STATIC_BUFFER_HPP 11 #define BOOST_BEAST_STATIC_BUFFER_HPP 14 #include <boost/asio/buffer.hpp> 44 std::size_t in_off_ = 0;
45 std::size_t in_size_ = 0;
46 std::size_t out_size_ = 0;
47 std::size_t capacity_;
55 std::array<boost::asio::mutable_buffer, 2>;
59 std::array<boost::asio::mutable_buffer, 2>;
145 reset(
void* p, std::size_t size);
165 template<std::
size_t N>
198 std::size_t constexpr
205 std::size_t constexpr
Definition: async_result.hpp:20
std::size_t size() const
Return the size of the input sequence.
Definition: static_buffer.hpp:73
static_buffer_base const & base() const
Returns the static_buffer_base portion of this object.
Definition: static_buffer.hpp:192
std::size_t capacity() const
Return the maximum sum of input and output sizes that can be held without an allocation.
Definition: static_buffer.hpp:87
mutable_buffers_type prepare(std::size_t size)
Definition: static_buffer.ipp:56
void consume(std::size_t size)
Definition: static_buffer.ipp:91
std::array< boost::asio::mutable_buffer, 2 > mutable_buffers_type
The type used to represent the output sequence as a list of buffers.
Definition: static_buffer.hpp:59
Definition: static_buffer.hpp:166
static_buffer_base & base()
Returns the static_buffer_base portion of this object.
Definition: static_buffer.hpp:185
std::array< boost::asio::mutable_buffer, 2 > const_buffers_type
The type used to represent the input sequence as a list of buffers.
Definition: static_buffer.hpp:55
const_buffers_type data() const
Definition: static_buffer.ipp:35
static_buffer()
Constructor.
Definition: static_buffer.hpp:175
std::size_t max_size() const
Return the maximum sum of the input and output sequence sizes.
Definition: static_buffer.hpp:80
std::size_t constexpr max_size() const
Return the maximum sum of the input and output sequence sizes.
Definition: static_buffer.hpp:199
void reset(void *p, std::size_t size)
Definition: static_buffer.ipp:111
Definition: static_buffer.hpp:41
void commit(std::size_t size)
Definition: static_buffer.ipp:82
std::size_t constexpr capacity() const
Return the maximum sum of input and output sizes that can be held without an allocation.
Definition: static_buffer.hpp:206