Пример #1
0
        public static cef_post_data_t *get_post_data(cef_request_t *self)
        {
            get_post_data_delegate d;
            var p = self->_get_post_data;

            if (p == _p8)
            {
                d = _d8;
            }
            else
            {
                d = (get_post_data_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_post_data_delegate));
                if (_p8 == IntPtr.Zero)
                {
                    _d8 = d; _p8 = p;
                }
            }
            return(d(self));
        }
Пример #2
0
 public static cef_post_data_t* get_post_data(cef_request_t* self)
 {
     get_post_data_delegate d;
     var p = self->_get_post_data;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_post_data_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_post_data_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }