when a char*
is appended it assumes \0
termination and serializes with writeBytes
which also writes out the size first (as uint32)
Writes the length specifier len and the buffer s to the stream and returns a reference to the stream.
The len is serialized as a quint32, followed by len bytes from s. Note that the data is not encoded.
you can use writeRawData
to circumvent it:
stream << dataHex<< dataChar;
stream.writeRawData(moreData.data(), moreDate.size());