21 const char *
const sourcePath,
22 const char *
const destinationPath
26 this->m_fileSize = fileSize;
28 this->m_destinationPath.
initialize(destinationPath);
34 return static_cast<U32
>(
35 this->m_header.bufferSize() +
36 sizeof(this->m_fileSize) +
37 this->m_sourcePath.bufferSize() +
38 this->m_destinationPath.bufferSize());
48 return this->toSerialBuffer(serialBuffer);
68 this->m_sourcePath.fromSerialBuffer(serialBuffer);
77 this->m_destinationPath.fromSerialBuffer(serialBuffer);
89 toSerialBuffer(SerialBuffer& serialBuffer)
const
96 this->m_header.toSerialBuffer(serialBuffer);
105 serialBuffer.serialize(this->m_fileSize);
114 this->m_sourcePath.toSerialBuffer(serialBuffer);
123 this->m_destinationPath.toSerialBuffer(serialBuffer);
void initialize(const char *const value)
Initialize a PathName.
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.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
U32 bufferSize() const
Compute the buffer size needed to hold this StartPacket.
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.