public static unsafe Gst.Net.NetTimePacket Receive(GLib.Socket socket, out GLib.SocketAddress src_address) { IntPtr native_src_address; IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_net_time_packet_receive(socket == null ? IntPtr.Zero : socket.Handle, out native_src_address, out error); Gst.Net.NetTimePacket ret = Gst.Net.NetTimePacket.New(raw_ret); src_address = GLib.Object.GetObject(native_src_address, true) as GLib.SocketAddress; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
static void ReadNative(IntPtr native, ref Gst.Net.NetTimePacket target) { target = New(native); }