rawPacket.resize(PacketLen+data.length()*2+2); memcpy( &rawPacket.data()[PacketLen], data.unicode(), data.length()*2 ); setShort( 1, PacketLen+data.length()*2 );
resize( PacketLen + data.length()*2+2 ); QString tmpData = data; this->setUnicodeString( PacketLen, tmpData, data.length()*2 ); setShort ( 1, PacketLen+data.length()*2 );
	void setParams ( const QString &data )	{		if ( data.length() > 0 )		{			rawPacket.resize(PacketLen+data.length()*2+2);			memcpy( &rawPacket.data()[PacketLen], data.unicode(), data.length()*2 );			setShort( 1, PacketLen+data.length()*2 );			setShort ( PacketLen+data.length()*2, 0 );		}	}