SDESItem Class Reference

#include <RTCP.hh>


Public Member Functions

 SDESItem (unsigned char tag, unsigned char const *value)
unsigned char const * data () const
unsigned totalSize () const

Private Attributes

unsigned char fData [2+0xFF]


Detailed Description

Definition at line 31 of file RTCP.hh.


Constructor & Destructor Documentation

SDESItem::SDESItem ( unsigned char  tag,
unsigned char const *  value 
)

Definition at line 921 of file RTCP.cpp.

References fData.

00921                                                                 {
00922   unsigned length = strlen((char const*)value);
00923   if (length > 0xFF) length = 0xFF; // maximum data length for a SDES item
00924 
00925   fData[0] = tag;
00926   fData[1] = (unsigned char)length;
00927   memmove(&fData[2], value, length);
00928 }


Member Function Documentation

unsigned char const* SDESItem::data (  )  const [inline]

Definition at line 35 of file RTCP.hh.

References fData.

Referenced by RTCPInstance::addSDES().

00035 {return fData;}

unsigned SDESItem::totalSize (  )  const

Definition at line 930 of file RTCP.cpp.

References fData.

Referenced by RTCPInstance::addSDES().

00930                                    {
00931   return 2 + (unsigned)fData[1];
00932 }


Field Documentation

unsigned char SDESItem::fData[2+0xFF] [private]

Definition at line 39 of file RTCP.hh.

Referenced by data(), SDESItem(), and totalSize().


The documentation for this class was generated from the following files:
Generated on Thu Feb 2 23:55:54 2012 for live by  doxygen 1.5.2