public static int close_file(cef_zip_reader_t *self) { close_file_delegate d; var p = self->_close_file; if (p == _pb) { d = _db; } else { d = (close_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(close_file_delegate)); if (_pb == IntPtr.Zero) { _db = d; _pb = p; } } return(d(self)); }
public static int close_file(cef_zip_reader_t* self) { close_file_delegate d; var p = self->_close_file; if (p == _pb) { d = _db; } else { d = (close_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(close_file_delegate)); if (_pb == IntPtr.Zero) { _db = d; _pb = p; } } return d(self); }