QDataStream is a serialization mechanism, not a general binary stream - it adds some additional data that allows deserialization of the stream later on. In your case the additional four bytes probably contain the length of the string you redirect into the stream.





Reply With Quote
Bookmarks