I'm creating an array to send across the network, so decided on QByteArray, which seems ideal for the task, except I want to insert some 32-bit values in the array, and it doesn't seem to support this other than by creating another array with the value and then appending that array to the first one, which seems a little daft.
I really don't want to have to shift, mask, and insert each byte seperately, but is there another option? I could be doing this 20 times or more per packet, but thinking there must be a better way than creating a method that takes a QByteArray and inserts each byte at the end.
Bookmarks