Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Htonl() equivalent in Qt ? [SOLVED]

    General and Desktop
    2
    2
    9718
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Raveendra last edited by

      can anyone tell me which -QT- Qt function is used to get the behaviour of htonl() function of windows?

      1 Reply Last reply Reply Quote 0
      • S
        sidewinder last edited by

        "qToBigEndian":http://qt-project.org/doc/qt-4.8/qtendian.html#qToBigEndian-2
        You may also be interested in "QDataStream":http://qt-project.org/doc/qt-4.8/qdatastream.html as it allows easy serialization of data, to format which is independent of system and processor.

        "Never memorize what you can look up in books."
        Albert Einstein

        1 Reply Last reply Reply Quote 0
        • First post
          Last post