Exemplo n.º 1
0
        public static int may_block(cef_stream_writer_t *self)
        {
            may_block_delegate d;
            var p = self->_may_block;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (may_block_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(may_block_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 2
0
 public static int may_block(cef_stream_reader_t* self)
 {
     may_block_delegate d;
     var p = self->_may_block;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (may_block_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(may_block_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }