crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianImageLib/ROM/Structures/SDemandPagingConfig.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 SymbianStructuresLib.Version;
       
    22 
       
    23 namespace SymbianImageLib.ROM.Structures
       
    24 {
       
    25     internal class SDemandPagingConfig
       
    26     {
       
    27         #region Constructors
       
    28         #endregion
       
    29 
       
    30         #region API
       
    31         public void Read( BinaryReader aReader )
       
    32         {
       
    33             iMinPages = aReader.ReadUInt16();
       
    34             iMaxPages = aReader.ReadUInt16();
       
    35             iYoungOldRatio = aReader.ReadUInt16();
       
    36         }
       
    37         #endregion
       
    38 
       
    39         #region Properties
       
    40         public uint Size
       
    41         {
       
    42             get 
       
    43             { 
       
    44                 int ret = 6 + ( iSpare.Length * 2 );
       
    45                 return (uint) ret;
       
    46             }
       
    47         }
       
    48 
       
    49         public ushort MinPages
       
    50         {
       
    51             get { return iMinPages; }
       
    52         }
       
    53 
       
    54         public ushort MaxPages
       
    55         {
       
    56             get { return iMaxPages; }
       
    57         }
       
    58 
       
    59         public ushort YoungOldRatio
       
    60         {
       
    61             get { return iYoungOldRatio; }
       
    62         }
       
    63         #endregion
       
    64 
       
    65         #region Internal constants
       
    66         #endregion
       
    67 
       
    68         #region Data members
       
    69 	    private ushort iMinPages;
       
    70         private ushort iMaxPages;
       
    71         private ushort iYoungOldRatio;
       
    72         private ushort[] iSpare = new ushort[3];
       
    73         #endregion
       
    74     }
       
    75 }