![]() |
Adapt a basic_string to the DynamicBuffer requirements.
template<
typename Elem,
typename Traits,
typename Allocator>
class dynamic_string_buffer
|
Name |
Description |
|---|---|
|
The type used to represent a sequence of constant buffers that refers to the underlying memory. |
|
|
The type used to represent a sequence of mutable buffers that refers to the underlying memory. |
|
Name |
Description |
|---|---|
|
Get the maximum size that the buffer may grow to without triggering reallocation. |
|
|
DynamicBuffer_v1: Move bytes from the output sequence to the input sequence. |
|
|
DynamicBuffer_v1: Remove characters from the input sequence. DynamicBuffer_v2: Consume the specified number of bytes from the beginning of the underlying memory. |
|
|
DynamicBuffer_v1: Get a list of buffers that represents the input
sequence. |
|
|
dynamic_string_buffer [constructor] |
Construct a dynamic buffer from a string. |
|
DynamicBuffer_v2: Grow the underlying memory by the specified number of bytes. |
|
|
Get the maximum size of the dynamic buffer. |
|
|
DynamicBuffer_v1: Get a list of buffers that represents the output sequence, with the given size. |
|
|
DynamicBuffer_v2: Shrink the underlying memory by the specified number of bytes. |
|
|
DynamicBuffer_v1: Get the size of the input sequence. DynamicBuffer_v2: Get the current size of the underlying memory. |
Requires that sizeof(Elem) == 1.
Header: asio/buffer.hpp
Convenience header: asio.hpp