58 QDataStream ds(&hex, QIODevice::WriteOnly);
bool operator==(const GBCPacket &other)
operator== GBCPacket equal operator.
quint64 extract(uchar *packet)
extract Extract GBC from packet.
LongPositionVector soPv() const
soPv SO PV getter.
quint32 timestamp() const
timestamp Timestamp field getter
quint16 sequenceNumber() const
sequenceNumber Sequence number getter.
GBCPacket()
GBCPacket GBCPacket constructor.
LongPositionVector m_soPv
bool isDuplicatePacketDetectionTimestampSN(quint32 lastReceivedTimestamp, quint32 nowReceivedTimestamp, quint16 lastReceivedSN, quint16 nowReceivedSN)
isDuplicatePacketDetectionTimestamp Calculate if the packet is a duplicate using the timestamp and th...
quint64 extract(uchar *packet)
extract Fill the LongPositionVector with values contained in the packet
DestinationArea m_destinationArea
GBCPacket operator=(const GBCPacket &other)
operator= GBCPacket affectation operator.
~GBCPacket()
~GBCPacket The GBCPacket destructor.
quint64 get_UINT16(u_char *field, quint16 *uint16)
get_INT64 Extract an integer encoded in 64 bits from a byte array.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the DestinationArea.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the LongPositionVector.
quint64 extract(uchar *packet)
extract Extract DestinationArea from byte array.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the GBCPacket.