sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: //
sl@0: 
sl@0: inline TUint8* TMemBuf::Base() const
sl@0: 	{
sl@0: 	__ASSERT_DEBUG(iBase!=NULL,User::Invariant());
sl@0: 	return iBase;
sl@0: 	}
sl@0: inline TUint8* TMemBuf::End() const
sl@0: 	{
sl@0: 	__ASSERT_DEBUG(TStreamBuf::End(ERead)==TStreamBuf::End(EWrite),User::Invariant());
sl@0: 	return TStreamBuf::End(EWrite);
sl@0: 	}
sl@0: 
sl@0: inline TDes8& TDesBuf::Des() const
sl@0: 	{
sl@0: 	__ASSERT_DEBUG(iDes!=NULL,User::Invariant());
sl@0: 	return *iDes;
sl@0: 	}
sl@0: inline TUint8* TDesBuf::Base() const
sl@0: 	{
sl@0: 	__ASSERT_DEBUG(Des().Ptr()!=NULL,User::Invariant());
sl@0: 	return (TUint8*)Des().Ptr();
sl@0: 	}
sl@0: 
sl@0: inline CBufBase& TBufBuf::Buf() const
sl@0: 	{
sl@0: 	__ASSERT_DEBUG(iBuf!=NULL,User::Invariant());
sl@0: 	return *iBuf;
sl@0: 	}
sl@0: inline void TBufBuf::SetPos(TRead,TInt aPos)
sl@0: 	{iRPos=aPos;}
sl@0: inline void TBufBuf::SetPos(TWrite,TInt aPos)
sl@0: 	{iWPos=aPos;}
sl@0: inline TInt TBufBuf::Pos(TRead) const
sl@0: 	{return iRPos;}
sl@0: inline TInt TBufBuf::Pos(TWrite) const
sl@0: 	{return iWPos;}
sl@0: inline TInt TBufBuf::MovePos(TRead,TInt anOffset)
sl@0: 	{return iRPos+=anOffset;}
sl@0: inline TInt TBufBuf::MovePos(TWrite,TInt anOffset)
sl@0: 	{return iWPos+=anOffset;}
sl@0: inline TInt TBufBuf::Mark(TRead) const
sl@0: 	{return Pos(ERead)-Avail(ERead);}
sl@0: inline TInt TBufBuf::Mark(TWrite) const
sl@0: 	{return Pos(EWrite)-Avail(EWrite);}
sl@0: