public static int toInt(byte[] byte_array) {
        return ((byte_array[0] & 0xFF) << 24) +
                ((byte_array[1] & 0xFF) << 16) +
                ((byte_array[2] & 0xFF) << 8) +
                (byte_array[3] & 0xFF);
    }