QString cUOPacket::getAsciiString( uint pos, uint fieldLength ) const
QString cUOPacket::getAsciiString( uint pos, uint fieldLength )
QString cUOPacket::getAsciiString( uint pos, uint fieldLength ) const{	if ( rawPacket.size() < fieldLength + pos )	{		qWarning(QString("Warning: cUOPacket::getAsciiString() called with params out of bounds"));		return QString(); //#better return empty ?	}	if ( fieldLength )	{		char* buffer = new char[fieldLength+1];		qstrncpy(buffer, rawPacket.data() + pos, fieldLength);		buffer[fieldLength] = 0; // truncate if larger		QString result(buffer);		delete[] buffer;		return result;	}	else	{		return rawPacket.data() + pos; // go until an \0 is found.	}}