Gst.IteratorItem InvokeNative(Gst.Iterator it, GLib.Value item) { IntPtr native_item = GLib.Marshaller.StructureToPtrAlloc(item); Gst.IteratorItem __result = (Gst.IteratorItem)native_cb(it == null ? IntPtr.Zero : it.Handle, native_item); Marshal.FreeHGlobal(native_item); return(__result); }
public int NativeCallback(IntPtr it, IntPtr item) { try { Gst.IteratorItem __ret = managed(it == IntPtr.Zero ? null : (Gst.Iterator)GLib.Opaque.GetOpaque(it, typeof(Gst.Iterator), false), (GLib.Value)Marshal.PtrToStructure(item, typeof(GLib.Value))); if (release_on_call) { gch.Free(); } return((int)__ret); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: Above call does not return. throw e; } }