+ Reply to Thread
Results 1 to 2 of 2

Thread: How to convert data from big-endian to little-endian and vice-versa?

  1. #1

    How to convert data from big-endian to little-endian and vice-versa?

    I am new to C/C++.

    I want to convert big-endian to little-endian and vice-versa.

    Is there any way to do this?

    Any algorithm or existing API?

    Please help.

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    28
    In Microsoft Visual C++, you can use : _byteswap_ushort or _byteswap_ulong or _byteswap_uint64 functions.

    For more information, please visit : http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

    Thanks.

+ Reply to Thread

Tags for this Thread

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