...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A DynamicBuffer with a fixed size internal buffer using no memory allocations.
Defined in header <boost/beast/core/flat_static_buffer.hpp>
template< std::size_t N> class flat_static_buffer : public flat_static_buffer_base
Name |
Description |
---|---|
The ConstBufferSequence used to represent the readable bytes. |
|
The MutableBufferSequence used to represent the writable bytes. |
Name |
Description |
---|---|
Returns the |
|
Return the maximum sum of input and output sizes that can be held without an allocation. |
|
Returns a constant buffer sequence representing the readable bytes. |
|
Clear the readable and writable bytes to zero. |
|
Append writable bytes to the readable bytes. |
|
Remove bytes from beginning of the readable bytes. |
|
Returns a constant buffer sequence representing the readable bytes.
|
|
flat_static_buffer [constructor] |
Constructor. |
Return the maximum sum of the input and output sequence sizes. |
|
Assignment. |
|
Returns a mutable buffer sequence representing writable bytes. |
|
Returns the number of readable bytes. |
Name |
Description |
---|---|
Reset the pointed-to buffer. |
Buffer sequences representing the readable and writable bytes, returned by
data
and prepare
, will have a type of net::const_buffer
or net::mutable_buffer.
Type |
Description |
---|---|
|
The number of bytes in the internal buffer. |
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.