Ejemplo n.º 1
0
 public static void Free(cef_string_userfree *str)
 {
     if (str != null)
     {
         NativeMethods.cef_string_userfree_free(str);
     }
 }
Ejemplo n.º 2
0
        internal static char GetFirstCharOrDefault(cef_string_userfree *str)
        {
            var str_t = ((cef_string_t *)str);

            if (str_t->length > 0)
            {
                return(*(str_t->str));
            }
            return('\x0');
        }
        public static string ToString(cef_string_userfree *str)
        {
            if (str != null)
            {
                var result = cef_string_t.ToString((cef_string_t *)str);
                libcef.string_userfree_free(str);
                return(result);
            }

            return(null);
        }
Ejemplo n.º 4
0
 public static string GetString(cef_string_userfree *str)
 {
     if (str != null)
     {
         return(cef_string_t.ToString((cef_string_t *)str));
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 5
0
 public static string GetStringAndFree(cef_string_userfree *str)
 {
     if (str != null)
     {
         var result = cef_string_t.ToString((cef_string_t *)str);
         NativeMethods.cef_string_userfree_free(str);
         return(result);
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 6
0
 public static int GetLength(cef_string_userfree *str)
 {
     return(((cef_string_t *)str)->length);
 }
Ejemplo n.º 7
0
 public static extern void cef_string_userfree_free(cef_string_userfree *str);