cryptomgmtlibs/securitycommonutils/inc/nullstream.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * A write stream that throws away all its input, but keeps track of how many
       
    16 * bytes have been written to it.	It is used for determining the amount of
       
    17 * memory needed to store externalised objects.
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 /**
       
    23  @file
       
    24  @internalTechnology
       
    25  @released
       
    26 */
       
    27 #ifndef __NULLSTREAM_H__
       
    28 #define __NULLSTREAM_H__
       
    29 #include <e32base.h>
       
    30 #include <s32strm.h>
       
    31 #include <scs/nullbuf.h>
       
    32 
       
    33 NONSHARABLE_CLASS(RNullWriteStream) : public RWriteStream
       
    34 	{
       
    35 public:
       
    36 	IMPORT_C RNullWriteStream();
       
    37 	IMPORT_C TUint BytesWritten();
       
    38 private:
       
    39 	TNullBuf iSink;
       
    40 	};
       
    41 
       
    42 #endif