static void OverrideFillFinish(GLib.GType gtype, FillFinishNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("fill_finish")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private long InternalFillFinish(GLib.IAsyncResult result) { FillFinishNativeDelegate unmanaged = class_abi.BaseOverride <FillFinishNativeDelegate>(this.LookupGType(), "fill_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 InternalFillFinish(GLib.IAsyncResult result) { FillFinishNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("fill_finish")); unmanaged = (FillFinishNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(FillFinishNativeDelegate)); } 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 OverrideFillFinish (GLib.GType gtype, FillFinishNativeDelegate callback) { GBufferedInputStreamClass class_iface = GetClassStruct (gtype, false); class_iface.FillFinish = callback; OverrideClassStruct (gtype, class_iface); }