static int reverseBytesInInt(int i) { ret i << 24 | (i & 0xFF00) << 8 | (i & 0xFF0000) >> 8 | (i >> 24) & 0xFF; }