Is there was a way to convert a hole array of bytes (lets say 1024) into an int array of total 256 integers without using something similar to this:
int result = 0;   
    result = b[0] & MASK;
    result = result + ((b[1] & MASK) << 8);
    result = result + ((b[2] & MASK) << 16);
    result = result + ((b[3] & MASK) << 24);            
return result;