static void OverrideEndOfStreamEvent(GLib.GType gtype, EndOfStreamEventNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("end_of_stream")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private Gst.FlowReturn InternalEndOfStreamEvent() { EndOfStreamEventNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("end_of_stream")); unmanaged = (EndOfStreamEventNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(EndOfStreamEventNativeDelegate)); } if (unmanaged == null) { return((Gst.FlowReturn) 0); } int __result = unmanaged(this.Handle); return((Gst.FlowReturn)__result); }