rtp/rtpstack/inc/rtppacket.inl
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef RtpPacket_INL
       
    22 #define RtpPacket_INL
       
    23 
       
    24 //#include "RtpPacket.h"
       
    25 
       
    26 void CRtpPacket::SetSize( TInt aSize )
       
    27     {
       
    28     iSize = aSize;
       
    29     };
       
    30 
       
    31 void CRtpPacket::SetType( TRtpPacketType aType )
       
    32     {
       
    33     iType = aType;
       
    34     };
       
    35 
       
    36 TInt CRtpPacket::Size() const
       
    37     {
       
    38     return iSize;
       
    39     };
       
    40 
       
    41 TUint8* CRtpPacket::Data()
       
    42     {
       
    43     return iData;
       
    44     };
       
    45 
       
    46 HBufC8* CRtpPacket::GetHBuf()
       
    47     {
       
    48     return iBuf;
       
    49     };
       
    50 
       
    51 TRtpPacketType CRtpPacket::Type() const
       
    52     {
       
    53     return iType;
       
    54     };
       
    55 
       
    56 const TPtrC8 CRtpPacket::Des() const
       
    57     {
       
    58     return TPtrC8( iData, iSize );
       
    59     };
       
    60 
       
    61 #endif
       
    62 
       
    63 // End of file