def parseReadData(self):
		strData = self.readBuffer.decode("utf-8")
		
		firstNewLine = strData.find("\n")
		secondNewLine = strData.find("\n", firstNewLine+1)
		if firstNewLine <= 0 or secondNewLine <= 0:
			return

		typeStr = strData[:firstNewLine]
		lengthStr = strData[firstNewLine+1:secondNewLine]

		length = self.parseLength(lengthStr)
		if length == -1:
			self.readBuffer = b"";
			return

		sizeOfTypeStr = len(bytes(typeStr, "utf-8")) + 1
		sizeOfLengthStr = len(bytes(lengthStr, "utf-8")) + 1
		
		if len(self.readBuffer) - sizeOfLengthStr - sizeOfTypeStr < length:
			return 				

		tmpStr = self.readBuffer[sizeOfLengthStr + sizeOfTypeStr:length + sizeOfLengthStr + sizeOfTypeStr]
		message = (typeStr, tmpStr.decode("utf-8"))
		self.readBuffer = self.readBuffer[sizeOfLengthStr + length + sizeOfTypeStr:]
		self.on_recv(message)
		self.parseReadData()
dataset/ETHPy150Open fusetools/Fuse.SublimePlugin/interop.py/Interop.parseReadData/original