예제 #1
0
        public static cef_window_info_t_mac *Alloc()
        {
            var ptr = (cef_window_info_t_mac *)Marshal.AllocHGlobal(_sizeof);

            *ptr = new cef_window_info_t_mac();
            return(ptr);
        }
예제 #2
0
 public static void Free(cef_window_info_t_mac* ptr)
 {
     if (ptr != null)
     {
         libcef.string_clear(&ptr->window_name);
         Marshal.FreeHGlobal((IntPtr)ptr);
     }
 }
예제 #3
0
 public static cef_window_info_t_mac* Alloc()
 {
     var ptr = (cef_window_info_t_mac*)Marshal.AllocHGlobal(_sizeof);
     *ptr = new cef_window_info_t_mac();
     return ptr;
 }