This is not an efficient way, at least I donβt think so, but it will work in all situations regardless of the size of the array and is easily converted to b.
__int8 p[] = {1, 1, 1, 1, 1};
In the above example, the variable "value" will have a value of 16 843 009. This is equivalent if you did it below.
int value = p[0] | p[1] << 0x8 | p[2] << 0x10 | p[3] << 0x18;
source share