equal
deleted
inserted
replaced
|
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 * Implementation of the MStreamBuf interface that throws away all |
|
16 * data written to it but keeps track of how many bytes have been |
|
17 * written to it. It does not support reading. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 @released |
|
26 */ |
|
27 #ifndef __NULLBUF_H__ |
|
28 #define __NULLBUF_H__ |
|
29 #include <e32base.h> |
|
30 #include <s32buf.h> |
|
31 |
|
32 NONSHARABLE_CLASS(TNullBuf) : public MStreamBuf |
|
33 { |
|
34 public: |
|
35 IMPORT_C TNullBuf(); |
|
36 IMPORT_C TUint BytesWritten(); |
|
37 private: |
|
38 // Implement MStreamBuf vritual |
|
39 virtual void DoWriteL(const TAny* aPtr,TInt aLength); |
|
40 private: |
|
41 TUint iBytesWritten; |
|
42 }; |
|
43 #endif |