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); }
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); }