int data = 0;
for(int i=0; i<4; i++)  data |= ((b[i] & 0xFF) << (i << 3));

524 Bytes