static void OverrideSkipFinish(GLib.GType gtype, SkipFinishNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("skip_finish")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private long InternalSkipFinish(GLib.IAsyncResult result) { SkipFinishNativeDelegate unmanaged = class_abi.BaseOverride <SkipFinishNativeDelegate>(this.LookupGType(), "skip_finish"); if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; IntPtr __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return((long)__result); }
private long InternalSkipFinish(GLib.IAsyncResult result) { SkipFinishNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("skip_finish")); unmanaged = (SkipFinishNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SkipFinishNativeDelegate)); } if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; IntPtr __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return((long)__result); }
static void OverrideSkipFinish (GLib.GType gtype, SkipFinishNativeDelegate callback) { GInputStreamClass class_iface = GetClassStruct (gtype, false); class_iface.SkipFinish = callback; OverrideClassStruct (gtype, class_iface); }