Hi, I'm working with a Byte Array and have come across some bytes that are in Big Endian. I need to convert them to Little Endian. I've done a lot of searching on the Internet, but there doesn't seem to be a real consensus on which approach is best. I was hoping for something simple and elegant.
Lets use this as an example of what I need to do.... I have byte 0x00400000 and its in Big Endian. I need to end up with 0x00004000, which is the Little Endian syntax.
The result has to remain in Hex, or at least a Sting, but we can drop the 0x part of it... I just need the bits to be in the right order.
Does anyone have a nice simple approach for this?
Thank you for your help,