I don't understand. Your initial problem statement said you already have these 6 bytes in a QByteArray. You use indexOf() to find the two byte sequence you are looking for and then QByteArray::mid() to create another QByteArray containing a copy of the two bytes. Seems rather pointless given that you know what the resulting QByteArray will contain before you even start.




Reply With Quote

Bookmarks