asio C++ library

PrevUpHomeNext

dynamic_buffer

The asio::dynamic_buffer function is used to create a dynamically resized buffer from a std::basic_string or std::vector.

Create a new dynamic buffer that represents the given string.

template<
    typename Elem,
    typename Traits,
    typename Allocator>
dynamic_string_buffer< Elem, Traits, Allocator > dynamic_buffer(
    std::basic_string< Elem, Traits, Allocator > & data);
  » more...

template<
    typename Elem,
    typename Traits,
    typename Allocator>
dynamic_string_buffer< Elem, Traits, Allocator > dynamic_buffer(
    std::basic_string< Elem, Traits, Allocator > & data,
    std::size_t max_size);
  » more...

Create a new dynamic buffer that represents the given vector.

template<
    typename Elem,
    typename Allocator>
dynamic_vector_buffer< Elem, Allocator > dynamic_buffer(
    std::vector< Elem, Allocator > & data);
  » more...

template<
    typename Elem,
    typename Allocator>
dynamic_vector_buffer< Elem, Allocator > dynamic_buffer(
    std::vector< Elem, Allocator > & data,
    std::size_t max_size);
  » more...
Requirements

Header: asio/buffer.hpp

Convenience header: asio.hpp


PrevUpHomeNext