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