...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A circular DynamicBuffer with a fixed size internal buffer.
Defined in header <boost/beast/core/static_buffer.hpp>
template< std::size_t N> class static_buffer : public static_buffer_base
Name |
Description |
---|---|
The type used to represent the input sequence as a list of buffers. |
|
The type used to represent the output sequence as a list of buffers. |
Name |
Description |
---|---|
Returns the static_buffer_base portion of this object. |
|
Return the maximum sum of input and output sizes that can be held without an allocation. |
|
Move bytes from the output sequence to the input sequence. |
|
Remove bytes from the input sequence. |
|
Get a list of buffers that represent the input sequence. |
|
Return the maximum sum of the input and output sequence sizes. |
|
Get a mutable list of buffers that represent the input sequence. |
|
Assignment. |
|
Get a list of buffers that represent the output sequence, with the given size. |
|
Return the size of the input sequence. |
|
Constructor. |
Name |
Description |
---|---|
Reset the pointed-to buffer. |
This implements a circular dynamic buffer. Calls to static_buffer::prepare
never require moving memory.
The buffer sequences returned may be up to length two. Ownership of the underlying
storage belongs to the derived class.
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 static_buffer_base
instead.
Convenience header <boost/beast/core.hpp>