Beispiel #1
0
    //----------------------------------------------------------------------------
    public static List <bool> GetList(ref List <bool> rList, long L, int nIndex)
    {
        if (rList == null)
        {
            rList = new List <bool>();
        }
        else
        {
            rList.Clear();
        }
        long ptr        = FCLibHelper.fc_get_param_ptr(L, nIndex);
        int  nArraySize = FCLibHelper.fc_get_array_size(ptr);

        //for(int i = 0; i< nArraySize; ++i)
        //{
        //    long  pNode = FCLibHelper.fc_get_array_node_temp_ptr(ptr, i);
        //    rList.Add(FCLibHelper.fc_get_value_bool(pNode));
        //}
        bool[] buffer = new bool[nArraySize];
        FCLibHelper.fc_get_array_bool(ptr, buffer, 0, nArraySize);
        rList.AddRange(buffer);
        return(rList);
    }