public bool GetFirstPacket(Gst.Rtp.RTCPPacket packet) { 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_packet = GLib.Marshaller.StructureToPtrAlloc(packet); bool raw_ret = gst_rtcp_buffer_get_first_packet(this_as_native, native_packet); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); Marshal.FreeHGlobal(native_packet); return(ret); }
static void ReadNative(IntPtr native, ref Gst.Rtp.RTCPPacket target) { target = New(native); }