ゴミ箱
|
#include <flat_static_buffer.hpp>
Public Member Functions | |
flat_static_buffer (flat_static_buffer const &) | |
Constructor. More... | |
flat_static_buffer () | |
Constructor. More... | |
flat_static_buffer & | operator= (flat_static_buffer const &) |
Assignment. More... | |
flat_static_buffer_base & | base () |
Returns the flat_static_buffer_base portion of this object. More... | |
flat_static_buffer_base const & | base () const |
Returns the flat_static_buffer_base portion of this object. More... | |
std::size_t constexpr | max_size () const |
Return the maximum sum of the input and output sequence sizes. More... | |
std::size_t constexpr | capacity () const |
Return the maximum sum of input and output sizes that can be held without an allocation. More... | |
Public Member Functions inherited from boost::beast::flat_static_buffer_base | |
flat_static_buffer_base (void *p, std::size_t n) | |
std::size_t | size () const |
Return the size of the input sequence. More... | |
std::size_t | max_size () const |
Return the maximum sum of the input and output sequence sizes. More... | |
std::size_t | capacity () const |
Return the maximum sum of input and output sizes that can be held without an allocation. More... | |
const_buffers_type | data () const |
void | reset () |
Set the input and output sequences to size 0. More... | |
mutable_buffers_type | prepare (std::size_t n) |
void | commit (std::size_t n) |
void | consume (std::size_t n) |
Remove bytes from the input sequence. More... | |
template<class > | |
auto | prepare_impl (std::size_t n) -> mutable_buffers_type |
Additional Inherited Members | |
Public Types inherited from boost::beast::flat_static_buffer_base | |
using | const_buffers_type = boost::asio::mutable_buffers_1 |
using | mutable_buffers_type = boost::asio::mutable_buffers_1 |
Protected Member Functions inherited from boost::beast::flat_static_buffer_base | |
flat_static_buffer_base ()=default | |
void | reset (void *p, std::size_t n) |
A DynamicBuffer with a fixed size internal buffer.
Buffer sequences returned by data and prepare will always be of length one. This implements a dynamic buffer using no memory allocations.
N | The number of bytes in the internal buffer. |
boost::beast::flat_static_buffer< N >::flat_static_buffer | ( | flat_static_buffer< N > const & | other | ) |
Constructor.
|
inline |
Constructor.
|
inline |
Returns the flat_static_buffer_base portion of this object.
|
inline |
Returns the flat_static_buffer_base portion of this object.
|
inline |
Return the maximum sum of input and output sizes that can be held without an allocation.
|
inline |
Return the maximum sum of the input and output sequence sizes.
auto boost::beast::flat_static_buffer< N >::operator= | ( | flat_static_buffer< N > const & | other | ) |
Assignment.