Modify this code to read bytes in the reverse endian?
- by ibiza
Hi, I have this bit of code which reads an 8 bytes array and converts it to a int64.
I would like to know how to tweak this code so it would work when receiving data represented with the reverse endian...
protected static long getLong(byte[] b, int off)
{
return ((b[off + 7] & 0xFFL) >> 0) +
((b[off + 6]…