Update contrib.
3 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
5 * This component and the accompanying materials are made available
6 * under the terms of the License "Eclipse Public License v1.0"
7 * which accompanies this distribution, and is available
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
10 * Initial Contributors:
11 * Nokia Corporation - initial contribution.
20 void MStreamBuf::Close()
25 void MStreamBuf::DoRelease()
29 void MStreamBuf::Release()
34 void MStreamBuf::SynchL()
39 TInt MStreamBuf::ReadL(TAny *aPtr,TInt aMaxLength)
41 return DoReadL(aPtr, aMaxLength);
44 void MStreamBuf::WriteL(const TUint8* aPtr,TInt aLength)
46 DoWriteL(aPtr, aLength);
49 void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos)
51 DoSeekL(aMark,EStreamBeginning,aPos);
54 TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset)
56 return DoSeekL(aMark,aLocation,anOffset);
59 TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset)
61 return DoSeekL(ERead,aLocation,anOffset);
64 TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset)
66 return DoSeekL(EWrite,aLocation,anOffset);
69 TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset)
71 return DoSeekL(ERead,EStreamMark,anOffset);
74 TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset)
76 return DoSeekL(EWrite,EStreamMark,anOffset);
79 TStreamPos MStreamBuf::TellL(TRead) const
81 return const_cast<MStreamBuf*>(this)->DoSeekL(ERead,EStreamMark,0);
84 TStreamPos MStreamBuf::TellL(TWrite) const
86 return const_cast<MStreamBuf*>(this)->DoSeekL(EWrite,EStreamMark,0);
92 TStreamPos MStreamBuf::DoSeekL(TMark,TStreamLocation,TInt)
94 dbg << Log::Indent() << "MStreamBuf::DoSeekL not supported" << Log::Endl();