First public contribution.
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 // Template class TCapture
18 inline TCapture<T>::TCapture(T& aRef)
22 inline T& TCapture<T>::Object() const
26 inline TDesHeader::TDesHeader(const TDesC8& aDes8)
27 : iVal((aDes8.Length()<<1)+1)
29 inline TDesHeader::TDesHeader(const TDesC16& aDes16)
30 : iVal((aDes16.Length()<<1))
32 inline TDesHeader& TDesHeader::operator=(const TDesC8& aDes8)
33 {return *this=TDesHeader(aDes8);}
34 inline TDesHeader& TDesHeader::operator=(const TDesC16& aDes16)
35 {return *this=TDesHeader(aDes16);}
36 inline TBool TDesHeader::IsWidth8() const
37 {return TInt(iVal)&0x1;}
38 inline TBool TDesHeader::IsWidth16() const
40 inline TInt TDesHeader::Length() const
41 {return TInt(iVal)>>1;}
42 inline void TDesHeader::ExternalizeL(RWriteStream& aStream) const
44 inline void TDesHeader::InternalizeL(RReadStream& aStream)
47 // Class TDesInternalizer
48 inline const TDesHeader& TDesInternalizer::Header() const
50 inline TDesHeader& TDesInternalizer::Header()
54 inline TPtrInput::TPtrInput(TAny* aPtr)
59 inline TPtrOutput::TPtrOutput(const TAny* aPtr)
63 // Class HDirectStoreBuf
64 inline HDirectStoreBuf::~HDirectStoreBuf()
65 {RShareBuf::DoRelease();}
66 inline HDirectStoreBuf::HDirectStoreBuf(TInt anOffset)