Пример #1
0
        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);
        }
Пример #2
0
 public static unsafe extern byte **proj_get_codes_from_database(IntPtr ctx, string auth_name, PJ_TYPE type, int allow_deprecated);