So you are modifying a copy of the loaded ByteArray
? Is there a reason why you are not working the loaded data directly, ie modify the ByteArray
supplied via the data
property?
Anyways, "replacing" the ByteArray
contents can be done using ByteArray::clear() and ByteArray::writeBytes()
data.clear();
data.writeBytes(DESencodedArray);