public static Gst.Uri FromString(string uri) { IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri); IntPtr raw_ret = gst_uri_from_string(native_uri); Gst.Uri ret = Gst.Uri.New(raw_ret); GLib.Marshaller.Free(native_uri); return(ret); }
public Gst.Uri MakeWritable() { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr raw_ret = gst_uri_make_writable(this_as_native); Gst.Uri ret = Gst.Uri.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public bool Equal(Gst.Uri second) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_second = GLib.Marshaller.StructureToPtrAlloc(second); bool raw_ret = gst_uri_equal(this_as_native, native_second); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); Marshal.FreeHGlobal(native_second); return(ret); }
public Gst.Uri Join(Gst.Uri ref_uri) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_ref_uri = GLib.Marshaller.StructureToPtrAlloc(ref_uri); IntPtr raw_ret = gst_uri_join(this_as_native, native_ref_uri); Gst.Uri ret = Gst.Uri.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); Marshal.FreeHGlobal(native_ref_uri); return(ret); }
public Gst.Uri FromStringWithBase(string uri) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri); IntPtr raw_ret = gst_uri_from_string_with_base(this_as_native, native_uri); Gst.Uri ret = Gst.Uri.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); GLib.Marshaller.Free(native_uri); return(ret); }
public Gst.Uri NewWithBase(string scheme, string userinfo, string host, uint port, string path, string query, string fragment) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_scheme = GLib.Marshaller.StringToPtrGStrdup(scheme); IntPtr native_userinfo = GLib.Marshaller.StringToPtrGStrdup(userinfo); IntPtr native_host = GLib.Marshaller.StringToPtrGStrdup(host); IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup(path); IntPtr native_query = GLib.Marshaller.StringToPtrGStrdup(query); IntPtr native_fragment = GLib.Marshaller.StringToPtrGStrdup(fragment); IntPtr raw_ret = gst_uri_new_with_base(this_as_native, native_scheme, native_userinfo, native_host, port, native_path, native_query, native_fragment); Gst.Uri ret = Gst.Uri.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); GLib.Marshaller.Free(native_scheme); GLib.Marshaller.Free(native_userinfo); GLib.Marshaller.Free(native_host); GLib.Marshaller.Free(native_path); GLib.Marshaller.Free(native_query); GLib.Marshaller.Free(native_fragment); return(ret); }
static void ReadNative(IntPtr native, ref Gst.Uri target) { target = New(native); }