public static int set_cookie(cef_cookie_manager_t *self, cef_string_t *url, cef_cookie_t *cookie, cef_set_cookie_callback_t *callback) { set_cookie_delegate d; var p = self->_set_cookie; if (p == _p6) { d = _d6; } else { d = (set_cookie_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_cookie_delegate)); if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; } } return(d(self, url, cookie, callback)); }
public static int set_cookie(cef_cookie_manager_t* self, cef_string_t* url, cef_cookie_t* cookie) { set_cookie_delegate d; var p = self->_set_cookie; if (p == _p6) { d = _d6; } else { d = (set_cookie_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_cookie_delegate)); if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; } } return d(self, url, cookie); }