Replace value in QByteArray & QDataStream
Posted on 2011-03-10
I'm trying without success to replace some values in a byte array or in a data stream in QT 4.7
Here's my situation:
I have a binary file with data. Each two bytes of this file represent a signed integer value. I need to replace all the integer values which are 0 with 22 and save the file with the new values.
Any ideas how to proceed ?