22 const U32 sequenceIndex,
33 return static_cast<U32
>(this->m_header.bufferSize() +
sizeof(this->m_checksumValue));
43 return this->toSerialBuffer(serialBuffer);
49 this->m_checksumValue = checksum.
getValue();
81 status = this->m_header.toSerialBuffer(serialBuffer);
86 status = serialBuffer.
serialize(this->m_checksumValue);
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
U32 getValue() const
Get the checksum value.
U32 bufferSize() const
Compute the buffer size needed to hold this EndPacket.
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
A variable-length serializable buffer.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.