How do I convert Little endian to Big endian?
I am reading a file a byte at a time and storing it in a Byte array.
There is one point in the file where I suspect the bytes are being stored in little endian format.
Since java uses only Big endian (right?) how would I go about taking this Byte, extracting its little endian value doing what ever I need to do to it and then store it back as a little endian format byte?
Thank you for any help.
00000010 - if i take the value in java it will be 2 i need to have java take its value as 64, then I would lets say half this value making it 32 and then store it back in little endian format so it would store as 00000100.
A built in function would be great but I havent had any luck finding any...