예제 #1
0
        public static void get_header_map(cef_request_t *self, cef_string_multimap *headerMap)
        {
            get_header_map_delegate d;
            var p = self->_get_header_map;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_header_map_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_header_map_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            d(self, headerMap);
        }
예제 #2
0
 public static void get_header_map(cef_request_t* self, cef_string_multimap* headerMap)
 {
     get_header_map_delegate d;
     var p = self->_get_header_map;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_header_map_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_header_map_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     d(self, headerMap);
 }