ゴミ箱
Public Member Functions | List of all members
boost::beast::flat_static_buffer< N > Class Template Reference

#include <flat_static_buffer.hpp>

Inheritance diagram for boost::beast::flat_static_buffer< N >:
boost::beast::flat_static_buffer_base

Public Member Functions

 flat_static_buffer (flat_static_buffer const &)
 Constructor. More...
 
 flat_static_buffer ()
 Constructor. More...
 
flat_static_bufferoperator= (flat_static_buffer const &)
 Assignment. More...
 
flat_static_buffer_basebase ()
 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)
 

Detailed Description

template<std::size_t N>
class boost::beast::flat_static_buffer< 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.

Template Parameters
NThe number of bytes in the internal buffer.
Note
To reduce the number of template instantiations when passing objects of this type in a deduced context, the signature of the receiving function should use flat_static_buffer_base instead.
See also
flat_static_buffer_base

Constructor & Destructor Documentation

template<std::size_t N>
boost::beast::flat_static_buffer< N >::flat_static_buffer ( flat_static_buffer< N > const &  other)

Constructor.

template<std::size_t N>
boost::beast::flat_static_buffer< N >::flat_static_buffer ( )
inline

Constructor.

Member Function Documentation

template<std::size_t N>
flat_static_buffer_base& boost::beast::flat_static_buffer< N >::base ( )
inline

Returns the flat_static_buffer_base portion of this object.

template<std::size_t N>
flat_static_buffer_base const& boost::beast::flat_static_buffer< N >::base ( ) const
inline

Returns the flat_static_buffer_base portion of this object.

template<std::size_t N>
std::size_t constexpr boost::beast::flat_static_buffer< N >::capacity ( ) const
inline

Return the maximum sum of input and output sizes that can be held without an allocation.

template<std::size_t N>
std::size_t constexpr boost::beast::flat_static_buffer< N >::max_size ( ) const
inline

Return the maximum sum of the input and output sequence sizes.

template<std::size_t N>
auto boost::beast::flat_static_buffer< N >::operator= ( flat_static_buffer< N > const &  other)

Assignment.


The documentation for this class was generated from the following files: