Update contrib.
2 * Copyright (c) 2002-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.
23 void Utils::DumpInteger(Output& aOut, const TDesC& aDesc,
24 const RInteger& aThat)
26 aOut.writeString(aDesc);
27 HBufC8* buf = aThat.BufferLC();
28 aOut.writeOctetString(*buf);
30 CleanupStack::PopAndDestroy(buf);
34 /* CRandomSetSource */
35 CRandomSetSource::CRandomSetSource(const TDesC8& aSource)
40 void CRandomSetSource::GenerateBytesL(TDes8& aDest)
43 //Reverse the string by bytes up to the point of the end of the given string
45 for (i=0; iCounter >= 0 && i< aDest.Length(); ++i,--iCounter)
47 aDest[i] = iValue[iCounter];
49 //Then fill the remaining (if any) bytes in aDest with 0's. This is all to
50 //allow the stuff to work with bigint style integers; we're writing straight
51 //into a RInteger.Ptr() here
52 for(;i<aDest.Length(); ++i)
58 void CRandomSetSource::SetSource(const TDesC8& aSource)
64 void CRandomSetSource::Reset(void)
66 iCounter = iValue.Length() - 1;