![]() |
Home | Libraries | People | FAQ | More |
A dynamic buffer providing a fixed size, circular 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 ConstBufferSequence used to represent the readable bytes. |
|
The MutableBufferSequence used to represent the writable bytes. |
|
The MutableBufferSequence used to represent the readable bytes. |
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. |
|
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. Returns a mutable buffer sequence representing the readable bytes. |
|
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. |
|
Constructor. |
A dynamic buffer encapsulates memory storage that may be automatically resized as required, where the memory is divided into two regions: readable bytes followed by writable bytes. These memory regions are internal to the dynamic buffer, but direct access to the elements is provided to permit them to be efficiently used with I/O operations. Objects of this type meet the requirements of DynamicBuffer and have the following additional properties:
static_buffer::data
when this
is non-const.
static_buffer::data
and static_buffer::prepare
, may have length up
to two.
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>