async_mqtt 5.0.0
Loading...
Searching...
No Matches
async_mqtt::property::detail::n_bytes_property< N > Struct Template Reference

N bytes_property. More...

#include <property.hpp>

Inherits boost::totally_ordered< n_bytes_property< N > >.

Public Member Functions

std::vector< as::const_buffer > const_buffer_sequence () const
 Add const buffer sequence into the given buffer.
 
property::id id () const
 Get property::id.
 
std::size_t size () const
 Get property size.
 

Static Public Member Functions

static constexpr std::size_t num_of_const_buffer_sequence ()
 Get number of element of const_buffer_sequence.
 

Detailed Description

template<std::size_t N>
struct async_mqtt::property::detail::n_bytes_property< N >

N bytes_property.

N is 1,2, or 4 in property usecases But this class template can accept any N.

Member Function Documentation

◆ const_buffer_sequence()

template<std::size_t N>
std::vector< as::const_buffer > async_mqtt::property::detail::n_bytes_property< N >::const_buffer_sequence ( ) const
inline

Add const buffer sequence into the given buffer.

Returns
A vector of const_buffer

◆ id()

template<std::size_t N>
property::id async_mqtt::property::detail::n_bytes_property< N >::id ( ) const
inline

Get property::id.

Returns
id

◆ num_of_const_buffer_sequence()

template<std::size_t N>
static constexpr std::size_t async_mqtt::property::detail::n_bytes_property< N >::num_of_const_buffer_sequence ( )
inlinestaticconstexpr

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ size()

template<std::size_t N>
std::size_t async_mqtt::property::detail::n_bytes_property< N >::size ( ) const
inline

Get property size.

Returns
property size

The documentation for this struct was generated from the following file: