async_mqtt 9.0.1
|
Classes | |
class | async_mqtt::buffer |
buffer that has string_view interface and shared ownership This class is only for advanced usecase such as developping high performance MQTT broker. Typical MQTT client developpers don't need to care about the buffer. This class provides string_view interface. This class holds string_view pointee's lifetime optionally. More... | |
class | std::hash< async_mqtt::buffer > |
class template hash specilization for the buffer More... | |
Functions | |
const_buffer | boost::asio::buffer (async_mqtt::buffer const &data) |
create boost::asio::const_buffer from the async_mqtt::buffer boost::asio::const_buffer is a kind of view class. So the class doesn't hold any lifetimes. The caller needs to manage data's lifetime. | |
std::shared_ptr< char[]> | async_mqtt::make_shared_ptr_char_array (std::size_t size) |
shared_ptr<char[]> creating function. You can choose the target type. | |
template<typename Alloc > | |
std::shared_ptr< char[]> | async_mqtt::allocate_shared_ptr_char_array (Alloc &&alloc, std::size_t size) |
shared_ptr<char[]> creating function with allocator. You can choose the target type. | |
|
inline |
shared_ptr<char[]> creating function with allocator. You can choose the target type.
std::make_shared<char[]>(size)
is used.std::shared_ptr<char[]>(new char[size])
is used.alloc | allocator |
size | of char array |
|
inline |
create boost::asio::const_buffer from the async_mqtt::buffer boost::asio::const_buffer is a kind of view class. So the class doesn't hold any lifetimes. The caller needs to manage data's lifetime.
data | source async_mqtt::buffer |
|
inline |
shared_ptr<char[]> creating function. You can choose the target type.
std::make_shared<char[]>(size)
is used.std::shared_ptr<char[]>(new char[size])
is used.size | of char array |