コード例 #1
0
 public static cef_binary_value_t* get_pemencoded(cef_sslinfo_t* self)
 {
     get_pemencoded_delegate d;
     var p = self->_get_pemencoded;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_pemencoded_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_pemencoded_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self);
 }
コード例 #2
0
        public static cef_binary_value_t *get_pemencoded(cef_x509certificate_t *self)
        {
            get_pemencoded_delegate d;
            var p = self->_get_pemencoded;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_pemencoded_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_pemencoded_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }