public static void OutDictionary(Dictionary <int, int> rList, long L, int nIndex) { long ptr = FCLibHelper.fc_get_param_ptr(L, nIndex); FCLibHelper.fc_map_clear(ptr); // 先清空map if (rList == null) { return; } long pKey = FCLibHelper.fc_get_map_push_key_ptr(ptr); long pValue = FCLibHelper.fc_get_map_push_value_ptr(ptr); foreach (var v in rList) { FCLibHelper.fc_set_value_int(pKey, v.Key); FCLibHelper.fc_set_value_int(pValue, v.Value); FCLibHelper.fc_map_push_key_value(ptr); } }