internal static IntPtr Unwrap(CfxBase cfxBase) { if (cfxBase == null) { return IntPtr.Zero; } else { return cfxBase.NativePtr; } }
static internal IntPtr Unwrap(CfxBase cfxBase) { if (cfxBase == null) { return(IntPtr.Zero); } else { return(cfxBase.NativePtr); } }
/// <summary> /// Sets the user data for this object and returns true (1) on success. Returns /// false (0) if this function is called incorrectly. This function can only be /// called on user created objects. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>. /// </remarks> public bool SetUserData(CfxBase userData) { return(0 != CfxApi.cfx_v8value_set_user_data(NativePtr, CfxBase.Unwrap(userData))); }
internal void Add(CfxBase obj) { // always locked by caller cache.Add(obj.nativePtrUnchecked, new WeakReference(obj, false)); }