def packed_unit8_to_int(in_array):
    """
    Packs a uint8 array into a single int.

    >>> packed_unit8_to_int(np.array([ 26, 105,  85], dtype=np.uint8))
    1730901

    :param in_array:
    :return:
    """
    num_i = int(0)
    for i, a in enumerate(reversed(in_array)):
        num_i += int(a) << 8 * i
    return num_i
