internal static cef_completion_handler_t* Alloc() { var ptr = (cef_completion_handler_t*)Marshal.AllocHGlobal(_sizeof); *ptr = new cef_completion_handler_t(); ptr->_base._size = (UIntPtr)_sizeof; return ptr; }
internal static cef_completion_handler_t *Alloc() { var ptr = (cef_completion_handler_t *)Marshal.AllocHGlobal(_sizeof); *ptr = new cef_completion_handler_t(); ptr->_base._size = (UIntPtr)_sizeof; return(ptr); }
private int release(cef_completion_handler_t* self) { lock (SyncRoot) { var result = --_refct; if (result == 0) { lock (_roots) { _roots.Remove((IntPtr)_self); } } return result; } }
private int add_ref(cef_completion_handler_t* self) { lock (SyncRoot) { var result = ++_refct; if (result == 1) { lock (_roots) { _roots.Add((IntPtr)_self, this); } } return result; } }
internal static void Free(cef_completion_handler_t* ptr) { Marshal.FreeHGlobal((IntPtr)ptr); }
private void CheckSelf(cef_completion_handler_t* self) { if (_self != self) throw ExceptionBuilder.InvalidSelfReference(); }
private int get_refct(cef_completion_handler_t* self) { return _refct; }
public static int flush_store(cef_cookie_manager_t* self, cef_completion_handler_t* handler) { flush_store_delegate d; var p = self->_flush_store; if (p == _p9) { d = _d9; } else { d = (flush_store_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(flush_store_delegate)); if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; } } return d(self, handler); }
private void on_complete(cef_completion_handler_t* self) { CheckSelf(self); OnComplete(); }