What is wrong with my code?
QbytesArray bufferFile;
QbytesArray buffer;
int receiveBytes, size;
…
receivedBytes += size;
bufferFile.resize(receivedBytes);
bufferFile.push_back(buffer.data()); \\ or bufferFile.push_back(buffer) which generates the same result
I am working with Qbytearray of around 100000 length. The reason why I have opted for qbytesArray is what I expect that I do not have
to allocate that big array of unsigned characters beforehand.
For some reason I tried to resize that qbytearray to accomodate some new data arrived from the socket.. Unfortunately on my debugger I have seen that
new characters are added (205 or 'Ã') and even more the number of added characters is not what I expects...? It seems to me that nearly all data from
qt 5.11.0 - msvc 2017 c++ are gone.
What I doing wrong?
Bookmarks