Ejemplo n.º 1
0
        public static UIntPtr get_file_contents(cef_drag_data_t *self, cef_stream_writer_t *writer)
        {
            get_file_contents_delegate d;
            var p = self->_get_file_contents;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_file_contents_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_file_contents_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self, writer));
        }
Ejemplo n.º 2
0
 public static UIntPtr get_file_contents(cef_drag_data_t* self, cef_stream_writer_t* writer)
 {
     get_file_contents_delegate d;
     var p = self->_get_file_contents;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_file_contents_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_file_contents_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, writer);
 }