Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 inline TSourceOutput::TSourceOutput(MStreamBuf* aSource)
19 __ASSERT_DEBUG(aSource!=NULL,Panic(EStreamNotOpen));
22 inline TFilterInput::TFilterInput(TStreamFilter& aFilter,TAny* aPtr,TInt aMaxLength)
23 : iFltr(&aFilter),iPtr((TUint8*)aPtr),iLeft(aMaxLength)
25 inline TBool TFilterInput::Done() const
27 inline TBool TFilterInput::Eof() const
29 inline TInt TFilterInput::Left() const
32 inline TFilterOutput::TFilterOutput(TStreamFilter& aFilter,const TAny* aPtr,TInt aLength)
33 : iFltr(&aFilter),iFrom((TUint8*)aPtr),iEnd((TUint8*)aPtr+aLength)
35 inline TBool TFilterOutput::Done() const
38 inline TUint8* TDelimitedInput8::Ptr() const
40 inline TInt TDelimitedInput8::Done() const
43 inline TUint16* TDelimitedInput16::Ptr() const
45 inline TInt TDelimitedInput16::Done() const
48 inline TBool TStreamMark::IsTracking(TStreamMark*const& __DEBUG(aRef)) const
51 return iPos==KStreamBeginning-1-(TUint(&aRef)>>2);
56 inline void TStreamMark::Track(TStreamMark*const& __DEBUG(aRef))
59 iPos=KStreamBeginning-1-(TUint(&aRef)>>2);
60 __ASSERT_DEBUG(iPos<KStreamBeginning-1,User::Invariant());
66 inline MStreamBuf& TStreamExchange::BufL() const
69 User::Leave(KErrNotReady);
72 inline MStreamBuf& TStreamExchange::Buf() const
74 __ASSERT_DEBUG(iHost!=NULL,User::Invariant());
78 inline TStreamExchange& RShareBuf::Host() const
80 __ASSERT_DEBUG(iHost!=NULL,User::Invariant());