...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 that uses multiple buffers internally.
Defined in header <boost/beast/core/multi_buffer.hpp>
template< class Allocator> class basic_multi_buffer
Name |
Description |
---|---|
The type of allocator used. |
|
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 |
---|---|
Constructor. Move constructor. Copy constructor. |
|
Returns the maximum sum of the sizes of the input sequence and output sequence the buffer can hold without requiring reallocation. |
|
Move bytes from the output sequence to the input sequence. |
|
Remove bytes from the input sequence. |
|
Get a list of buffers that represents the input sequence. |
|
Returns a copy of the associated allocator. |
|
Returns the permitted maximum sum of the sizes of the input and output sequence. |
|
Move assignment. Copy assignment. |
|
Get a list of buffers that represents the output sequence, with the given size. |
|
Returns the size of the input sequence. |
|
Destructor. |
Name |
Description |
---|---|
The implementation uses a sequence of one or more character arrays of varying sizes. Additional character array objects are appended to the sequence to accommodate changes in the size of the character sequence.
Meets the requirements of DynamicBuffer.
Type |
Description |
---|---|
|
The allocator to use for managing memory. |
Convenience header <boost/beast/core.hpp>