Networking TS

PrevUpHomeNext

dynamic_vector_buffer

Adapt a vector to the DynamicBuffer requirements.

template<
    typename Elem,
    typename Allocator>
class dynamic_vector_buffer
Types

Name

Description

const_buffers_type

The type used to represent the input sequence as a list of buffers.

mutable_buffers_type

The type used to represent the output sequence as a list of buffers.

Member Functions

Name

Description

capacity

Get the current capacity of the dynamic buffer.

commit

Move bytes from the output sequence to the input sequence.

consume

Remove characters from the input sequence.

data

Get a list of buffers that represents the input sequence.

dynamic_vector_buffer

Construct a dynamic buffer from a string.

Move construct a dynamic buffer.

max_size

Get the maximum size of the dynamic buffer.

prepare

Get a list of buffers that represents the output sequence, with the given size.

size

Get the size of the input sequence.

Requires that sizeof(Elem) == 1.


PrevUpHomeNext