public static unsafe List <string> Proj_get_codes_from_database(IntPtr ctx, string auth_name, PJ_TYPE type, int allow_deprecated) { List <string> result = new List <string>(); byte **list = proj_get_codes_from_database(ctx, auth_name, type, allow_deprecated); if (list != null) { try { byte **ptr = list; while (*ptr != null) { string s = new string((sbyte *)*ptr); result.Add(s); ptr++; } } finally { proj_string_list_destroy(list); } } return(result); }
public static unsafe extern byte **proj_get_codes_from_database(IntPtr ctx, string auth_name, PJ_TYPE type, int allow_deprecated);