public void ParseToc(out Gst.Toc toc, out bool updated) { IntPtr native_toc = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Gst.Toc))); gst_event_parse_toc(Handle, native_toc, out updated); toc = Gst.Toc.New(native_toc); Marshal.FreeHGlobal(native_toc); }
public static Event NewToc(Gst.Toc toc, bool updated) { IntPtr native_toc = GLib.Marshaller.StructureToPtrAlloc(toc); Event result = new Event(gst_event_new_toc(native_toc, updated)); Marshal.FreeHGlobal(native_toc); return(result); }
static void ReadNative(IntPtr native, ref Gst.Toc target) { target = New(native); }