PacketReader::PacketReader(Packet* poPacket) { m_pbfBuff = NULL; m_nBuffSize = NULL; m_nReadedSize = 0; if (poPacket != NULL) { SetPacket(poPacket); } }
/** * 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)); }