Results 1 to 7 of 7

Thread: QDataStream extra bytes in output?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QDataStream extra bytes in output?

    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.

  2. The following user says thank you to wysota for this useful post:

    grellsworth (15th November 2007)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.