18 void FilePacket::StartPacket ::
21 const char *
const sourcePath,
22 const char *
const destinationPath
26 this->m_fileSize = fileSize;
27 this->m_sourcePath.initialize(sourcePath);
28 this->m_destinationPath.initialize(destinationPath);
18 void FilePacket::StartPacket :: {
…}
31 U32 FilePacket::StartPacket ::
34 return this->m_header.bufferSize() +
35 sizeof(this->m_fileSize) +
36 this->m_sourcePath.bufferSize() +
37 this->m_destinationPath.bufferSize();
31 U32 FilePacket::StartPacket :: {
…}
41 toBuffer(
Buffer& buffer)
const
47 return this->toSerialBuffer(serialBuffer);
54 FW_ASSERT(this->m_header.m_type == T_START);
65 this->m_sourcePath.fromSerialBuffer(serialBuffer);
72 this->m_destinationPath.fromSerialBuffer(serialBuffer);
82 toSerialBuffer(SerialBuffer& serialBuffer)
const
85 FW_ASSERT(this->m_header.m_type == T_START);
89 this->m_header.toSerialBuffer(serialBuffer);
96 serialBuffer.serialize(this->m_fileSize);
103 this->m_sourcePath.toSerialBuffer(serialBuffer);
110 this->m_destinationPath.toSerialBuffer(serialBuffer);
A variable-length serializable buffer.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.