5 UInt32 ARM_Convert(Byte *data, UInt32 size, UInt32 nowPos, int encoding)
8 for (i = 0; i + 4 <= size; i += 4)
10 if (data[i + 3] == 0xEB)
13 UInt32 src = (data[i + 2] << 16) | (data[i + 1] << 8) | (data[i + 0]);
16 dest = nowPos + i + 8 + src;
18 dest = src - (nowPos + i + 8);
20 data[i + 2] = (Byte)(dest >> 16);
21 data[i + 1] = (Byte)(dest >> 8);
22 data[i + 0] = (Byte)dest;