crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianETMLib/Common/Packets/Implementations/ETMPcktOutOfOrderData.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 
       
    18 using System;
       
    19 using System.Collections.Generic;
       
    20 using System.Text;
       
    21 using SymbianUtils.BasicTypes;
       
    22 using SymbianETMLib.Common.Types;
       
    23 
       
    24 namespace SymbianETMLib.Common.Packets
       
    25 {
       
    26     public class ETMPcktOutOfOrderData : ETMPcktBase
       
    27     {
       
    28         #region Constructors
       
    29         public ETMPcktOutOfOrderData()
       
    30         {
       
    31             base.SetMask( "0##0##00" );
       
    32         }
       
    33 
       
    34         public ETMPcktOutOfOrderData( SymByte aByte )
       
    35             : base( aByte )
       
    36         {
       
    37         }
       
    38         #endregion
       
    39 
       
    40         #region API
       
    41         #endregion
       
    42 
       
    43         #region From PcktBase
       
    44         public override int Priority
       
    45         {
       
    46             get
       
    47             {
       
    48                 return int.MinValue + 2;
       
    49             }
       
    50         }
       
    51 
       
    52         public override bool Matches( SymByte aOpCode )
       
    53         {
       
    54             bool ret = base.Matches( aOpCode );
       
    55             if ( ret )
       
    56             {
       
    57                 // Tag has to be > 0
       
    58                 SymMask mask = new SymMask( "1100000", SymMask.TShiftDirection.ERight, 5 );
       
    59                 uint tag = mask.Apply( aOpCode );
       
    60                 ret = ( tag > 0 && tag < 4 );
       
    61             }
       
    62             // 
       
    63             return ret;
       
    64         }
       
    65         #endregion
       
    66 
       
    67         #region Properties
       
    68         public int Size
       
    69         {
       
    70             get
       
    71             {
       
    72                 SymMask mask = new SymMask( "1100", SymMask.TShiftDirection.ERight, 2 );
       
    73                 int ret = (int) mask.Apply( base.RawByte );
       
    74                 return ret;
       
    75             }
       
    76         }
       
    77         #endregion
       
    78 
       
    79         #region Internal constants
       
    80         #endregion
       
    81 
       
    82         #region From System.Object
       
    83         #endregion
       
    84 
       
    85         #region Data members
       
    86         #endregion
       
    87     }
       
    88 }