#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] |
Definition at line 31 of file RTCP.hh.
| 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 }
| 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 }
unsigned char SDESItem::fData[2+0xFF] [private] |
1.5.2