2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "iot/mqtt/MqttContext.h"
21#include "iot/mqtt/types/TypeBase.h"
23#ifndef DOXYGEN_SHOULD_SKIP_THIS
27namespace iot::mqtt::
types {
29 template <
typename ValueType>
36 template <
typename ValueType>
38 std::size_t consumed = 0;
40 consumed = mqttContext->recv(value.data() + length - needed, needed);
47 template <
typename ValueType>
55 template <
typename ValueTypeT>
60 template <
typename ValueType>
65 template <
typename ValueType>
70 template <
typename ValueType>
BinaryData(const BinaryData &)=default
bool operator==(const std::vector< char > &rhsValue) const
std::size_t deserialize(iot::mqtt::MqttContext *mqttContext) override
BinaryData & operator=(BinaryData &&) noexcept=default
void reset(std::size_t size=0) override
BinaryData & operator=(const std::vector< char > &newValue)
bool operator!=(const std::vector< char > &rhsValue) const
BinaryData(BinaryData &&) noexcept=default
std::vector< char > serialize() const override
BinaryData & operator=(const BinaryData &)=default
void setSize(std::size_t size)
virtual std::vector< char > serialize() const
virtual std::size_t deserialize(iot::mqtt::MqttContext *mqttContext)
TypeBase(std::size_t size=sizeof(ValueType))
virtual void reset(std::size_t size=sizeof(ValueType))