|
1 /* |
|
2 * Copyright (c) 2007 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "TIptvUint32StreamObject.h" |
|
24 #include <s32mem.h> |
|
25 |
|
26 // EXTERNAL DATA STRUCTURES |
|
27 |
|
28 // EXTERNAL FUNCTION PROTOTYPES |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 |
|
34 // LOCAL CONSTANTS AND MACROS |
|
35 |
|
36 // MODULE DATA STRUCTURES |
|
37 |
|
38 // LOCAL FUNCTION PROTOTYPES |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 |
|
42 // ============================= LOCAL FUNCTIONS =============================== |
|
43 |
|
44 // ============================ MEMBER FUNCTIONS =============================== |
|
45 |
|
46 EXPORT_C TIptvUint32StreamObject::TIptvUint32StreamObject() |
|
47 : iData(0) |
|
48 { |
|
49 } |
|
50 |
|
51 EXPORT_C TIptvUint32StreamObject::~TIptvUint32StreamObject() |
|
52 { |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // TIptvUint32StreamObject::ExternalizeL |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 EXPORT_C void TIptvUint32StreamObject::ExternalizeL(RWriteStream& aStream) |
|
60 { |
|
61 aStream.WriteUint32L(iData); |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // TIptvUint32StreamObject::InternalizeL |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 EXPORT_C void TIptvUint32StreamObject::InternalizeL(RReadStream& aStream) |
|
69 { |
|
70 iData = aStream.ReadUint32L(); |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // TIptvUint32StreamObject::CountExternalizeSize |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C TUint32 TIptvUint32StreamObject::CountExternalizeSize() |
|
78 { |
|
79 return 4; |
|
80 } |
|
81 |
|
82 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
83 |
|
84 // End of File |