public static int open_file(cef_zip_reader_t *self, cef_string_t *password) { open_file_delegate d; var p = self->_open_file; if (p == _pa) { d = _da; } else { d = (open_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(open_file_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return(d(self, password)); }
public static int open_file(cef_zip_reader_t* self, cef_string_t* password) { open_file_delegate d; var p = self->_open_file; if (p == _pa) { d = _da; } else { d = (open_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(open_file_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return d(self, password); }