18 void FilePacket::Header ::
21 const U32 sequenceIndex
25 this->m_sequenceIndex = sequenceIndex;
28 U32 FilePacket::Header ::
31 return sizeof(
U8) +
sizeof(this->m_sequenceIndex);
35 fromSerialBuffer(SerialBuffer& serialBuffer)
41 status = serialBuffer.deserialize(new_type);
45 this->m_type =
static_cast<Type>(new_type);
47 status = serialBuffer.deserialize(this->m_sequenceIndex);
54 toSerialBuffer(SerialBuffer& serialBuffer)
const
57 const U8 type_casted =
static_cast<U8>(this->m_type);
60 status = serialBuffer.serialize(type_casted);
65 status = serialBuffer.serialize(this->m_sequenceIndex);
uint8_t U8
8-bit unsigned integer
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.