public Gst.IteratorResult Next(ref GLib.Value elem) { int raw_ret = gst_iterator_next(Handle, ref elem); Gst.IteratorResult ret = (Gst.IteratorResult)raw_ret; return(ret); }
public Gst.IteratorResult Foreach(Gst.IteratorForeachFunction func) { GstSharp.IteratorForeachFunctionWrapper func_wrapper = new GstSharp.IteratorForeachFunctionWrapper(func); int raw_ret = gst_iterator_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero); Gst.IteratorResult ret = (Gst.IteratorResult)raw_ret; return(ret); }
Gst.IteratorResult InvokeNative(Gst.Iterator it, GLib.Value _result) { IntPtr native__result = GLib.Marshaller.StructureToPtrAlloc(_result); Gst.IteratorResult __result = (Gst.IteratorResult)native_cb(it == null ? IntPtr.Zero : it.Handle, native__result); Marshal.FreeHGlobal(native__result); return(__result); }
public Gst.IteratorResult Fold(Gst.IteratorFoldFunction func, GLib.Value _ret) { GstSharp.IteratorFoldFunctionWrapper func_wrapper = new GstSharp.IteratorFoldFunctionWrapper(func); IntPtr native__ret = GLib.Marshaller.StructureToPtrAlloc(_ret); int raw_ret = gst_iterator_fold(Handle, func_wrapper.NativeDelegate, native__ret, IntPtr.Zero); Gst.IteratorResult ret = (Gst.IteratorResult)raw_ret; Marshal.FreeHGlobal(native__ret); return(ret); }
public int NativeCallback(IntPtr it, IntPtr _result) { try { Gst.IteratorResult __ret = managed(it == IntPtr.Zero ? null : (Gst.Iterator)GLib.Opaque.GetOpaque(it, typeof(Gst.Iterator), false), (GLib.Value)Marshal.PtrToStructure(_result, 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; } }