示例#1
0
PacketReader::PacketReader(Packet* poPacket)
{
	m_pbfBuff = NULL;
	m_nBuffSize = NULL;
	m_nReadedSize = 0;
	if (poPacket != NULL)
	{
		SetPacket(poPacket);
	}
}
示例#2
0
 /**
  * Constructor for packet and fields
  * @param packet packet or nonce
  */
 explicit SessionData(const QByteArray &packet)
 {
   Q_ASSERT(packet[0] == SessionMessage::SessionData);
   SetPacket(packet.mid(1));
 }