crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianImageLib/ROM/Structures/TRomLoaderHeader.cs
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 "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 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using System.IO; |
|
21 |
|
22 namespace SymbianImageLib.ROM.Structures |
|
23 { |
|
24 internal class TRomLoaderHeader |
|
25 { |
|
26 #region Constructors |
|
27 public TRomLoaderHeader() |
|
28 { |
|
29 uint sizeOfRomLoad = TRomLoad.Size; |
|
30 iPadding = new byte[ KRomWrapperSize - sizeOfRomLoad ]; |
|
31 } |
|
32 #endregion |
|
33 |
|
34 #region API |
|
35 public void Read( BinaryReader aReader ) |
|
36 { |
|
37 iRomLoad.Read( aReader ); |
|
38 aReader.BaseStream.Read( iPadding, 0, iPadding.Length ); |
|
39 } |
|
40 #endregion |
|
41 |
|
42 #region Properties |
|
43 public uint Size |
|
44 { |
|
45 get |
|
46 { |
|
47 uint ret = TRomLoad.Size; |
|
48 ret += (uint) iPadding.Length; |
|
49 return ret; |
|
50 } |
|
51 } |
|
52 #endregion |
|
53 |
|
54 #region Internal constants |
|
55 private const int KRomWrapperSize = 0x100; |
|
56 private const int KRomLoadSize = 0xc8; |
|
57 #endregion |
|
58 |
|
59 #region Data members |
|
60 private TRomLoad iRomLoad = new TRomLoad(); |
|
61 private byte[] iPadding = new byte[ 0 ]; |
|
62 #endregion |
|
63 } |
|
64 } |