Hi,
I have this vector defined:
vector<char> payload;
vector<char> payload;
To copy to clipboard, switch view to plain text mode
and re-sized it to the appropriate size with:
payload.resize(size_packet_data+2);
payload.resize(size_packet_data+2);
To copy to clipboard, switch view to plain text mode
and some QDataStream object like 'mybytes'...
and, as expected I can't do
mybytes >> payload.
mybytes >> payload.
To copy to clipboard, switch view to plain text mode
So, quick question is:
What the best way to read (len) bytes from a QDataStream to a vector?
TIA,
Pedro.
Bookmarks