Ejemplo n.º 1
0
        public static int is_owned(cef_list_value_t *self)
        {
            is_owned_delegate d;
            var p = self->_is_owned;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (is_owned_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_owned_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 2
0
 public static int is_owned(cef_binary_value_t* self)
 {
     is_owned_delegate d;
     var p = self->_is_owned;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (is_owned_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_owned_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }