Last active
October 7, 2018 15:14
-
-
Save cosminpopescu14/ed9783a742015c456d56114b54b7e93d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static uint ConvertEndianess(uint data) | |
{ | |
uint goodData = ((data & 0x000000FF) << 24) + ((data & 0x0000FF00) << 8) + ((data & 0x00FF0000) >> 8) + ((data & 0xFF000000) >> 24); | |
return goodData; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://en.wikipedia.org/wiki/Endianness