crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianImageLib/ROM/Structures/TExtensionRomHeader.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     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 using System.Runtime.InteropServices;
       
    22 using SymbianStructuresLib.Version;
       
    23 
       
    24 namespace SymbianImageLib.ROM.Structures
       
    25 {
       
    26     internal class TExtensionRomHeader
       
    27     {
       
    28         #region Constructors
       
    29         #endregion
       
    30 
       
    31         #region API
       
    32         public void Read( BinaryReader aReader )
       
    33         {
       
    34             iVersion.Read( aReader );
       
    35             iRomBase = aReader.ReadUInt32();
       
    36             iRomSize = aReader.ReadUInt32();
       
    37             iRomRootDirectoryList = aReader.ReadUInt32();
       
    38             iTime = aReader.ReadInt64();
       
    39             iCheckSum = aReader.ReadUInt32();
       
    40             iKernelVersion.Read( aReader );
       
    41             iKernelTime = aReader.ReadInt64();
       
    42             iKernelCheckSum = aReader.ReadUInt32();
       
    43             iCompressionType = aReader.ReadUInt32();
       
    44             iCompressedSize = aReader.ReadUInt32();
       
    45             iUncompressedSize = aReader.ReadUInt32();
       
    46             iRomExceptionSearchTable = aReader.ReadUInt32();
       
    47             //
       
    48             int size = Marshal.SizeOf( iPad );
       
    49             byte[] pad = aReader.ReadBytes( size );
       
    50         }
       
    51         #endregion
       
    52 
       
    53         #region Properties
       
    54         #endregion
       
    55 
       
    56         #region Internal constants
       
    57         #endregion
       
    58 
       
    59         #region Data members
       
    60         private TVersion iVersion = new TVersion();
       
    61         private uint iRomBase;
       
    62         private uint iRomSize;
       
    63         private uint iRomRootDirectoryList;
       
    64         private long iTime;
       
    65         private uint iCheckSum;
       
    66         private TVersion iKernelVersion = new TVersion();
       
    67         private long iKernelTime;
       
    68         private uint iKernelCheckSum;
       
    69         private uint iCompressionType;	// compression type used
       
    70         private uint iCompressedSize;	// Size after compression
       
    71         private uint iUncompressedSize;	// Size before compression
       
    72         private uint iRomExceptionSearchTable;
       
    73         private uint[] iPad = new uint[ 32 - 15 ]; // sizeof(TExtensionRomHeader)=128
       
    74         #endregion
       
    75     }
       
    76 }