First public contribution.
2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Methods common to all constructed-data-type encoding classes
23 CASN1EncConstructed::CASN1EncConstructed(const TTagType aType, const TASN1Class aClass)
24 : CASN1EncBase(aType, aClass)
29 TBool CASN1EncConstructed::IsConstructed() const
35 void CASN1EncConstructed::CalculateContentsLengthDER()
37 iContentsLengthDER = 0;
38 TUint numChildren = NumChildren();
39 for (TUint index = 0; index < numChildren; ++index)
41 iContentsLengthDER += Child(index).LengthDER();
46 void CASN1EncConstructed::WriteContentsDERL(TDes8& aBuf) const
49 TUint numChildren = NumChildren();
50 for (TUint index = 0; index < numChildren; ++index)
52 Child(index).WriteDERL(aBuf, pos);