|
MythTV master
|
UDP Packet. More...
#include <libmythtv/recorders/rtp/udppacket.h>
Public Member Functions | |
| UDPPacket (const UDPPacket &)=default | |
| UDPPacket (uint64_t key) | |
| UDPPacket (void)=default | |
| virtual | ~UDPPacket ()=default |
| UDPPacket & | operator= (const UDPPacket &)=default |
| virtual bool | IsValid (void) const |
| IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData() More... | |
| uint64_t | GetKey (void) const |
| QByteArray & | GetDataReference (void) |
| QByteArray | GetData (void) const |
Protected Attributes | |
| uint64_t | m_key { 0ULL } |
| Key used to ensure we avoid extra memory allocation in m_data QByteArray. More... | |
| QByteArray | m_data |
UDP Packet.
The data is stored in a QByteArray which is a reference counted shared data container, so an UDPPacket can be assigned to a subclass efficiently.
Definition at line 20 of file udppacket.h.
|
default |
|
inlineexplicit |
Definition at line 24 of file udppacket.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 37 of file udppacket.h.
|
inline |
Definition at line 36 of file udppacket.h.
Referenced by IPTVStreamHandlerReadHelper::ReadPending(), SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 34 of file udppacket.h.
Referenced by PacketBuffer::FreePacket().
|
inlinevirtual |
IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData()
Reimplemented in RTPDataPacket.
Definition at line 32 of file udppacket.h.
|
protected |
Definition at line 42 of file udppacket.h.
Referenced by GetData(), GetDataReference(), RTPTSDataPacket::GetTSData(), RTPTSDataPacket::GetTSDataSize(), and RTPDataPacket::IsValid().
|
protected |
Key used to ensure we avoid extra memory allocation in m_data QByteArray.
Definition at line 41 of file udppacket.h.
Referenced by GetKey().