@@ -24,6 +24,12 @@ Data::Data(const Data& data) :
{
}
+Data& Data::operator=(Data other)
+{
+ m_data = other.m_data;
+ return *this;
+}
+
uint8_t& Data::GetAt(unsigned pos)
return m_data[pos];
@@ -16,6 +16,8 @@ public:
Data(const uint8_t* msg, unsigned length);
Data(const Data& data);
+ Data& operator=(Data other);
uint8_t& GetAt(unsigned pos);
const uint8_t& GetAt(unsigned pos) const;
uint16_t& GetAt16(unsigned pos);