os/security/cryptoservices/filebasedcertificateandkeystores/source/shared/NullStream.h
Update contrib.
2 * Copyright (c) 2004-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.
24 #ifndef __NullStream_h__
25 #define __NullStream_h__
31 * Implementation of the MStreamBuf interface that throws away all data written
32 * to it. It does not support reading.
35 class TNullBuf : public MStreamBuf
41 virtual void DoWriteL(const TAny* aPtr,TInt aLength);
47 * A write stream that throws away all its input, but keeps track of how many
48 * bytes have been written to it. It is used for determining the amount of
49 * memory needed to store externalised objects.
52 class RNullWriteStream : public RWriteStream