crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/DataBuffer/Entry/DataBufferByte.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.Text.RegularExpressions; |
|
21 using System.IO; |
|
22 |
|
23 namespace SymbianUtils.DataBuffer.Entry |
|
24 { |
|
25 public class DataBufferByte |
|
26 { |
|
27 #region Constructors |
|
28 internal DataBufferByte( byte aByte, uint aAddress ) |
|
29 { |
|
30 iAddress = aAddress; |
|
31 iByte = aByte; |
|
32 } |
|
33 #endregion |
|
34 |
|
35 #region API |
|
36 #endregion |
|
37 |
|
38 #region Properties |
|
39 public uint Address |
|
40 { |
|
41 get |
|
42 { |
|
43 uint ret = iAddress; |
|
44 // |
|
45 if ( Buffer != null ) |
|
46 { |
|
47 ret += Buffer.AddressOffset; |
|
48 } |
|
49 // |
|
50 return ret; |
|
51 } |
|
52 } |
|
53 |
|
54 public byte Byte |
|
55 { |
|
56 get { return iByte; } |
|
57 } |
|
58 #endregion |
|
59 |
|
60 #region Operators |
|
61 public static implicit operator byte( DataBufferByte aEntry ) |
|
62 { |
|
63 return aEntry.Byte; |
|
64 } |
|
65 #endregion |
|
66 |
|
67 #region Internal properties |
|
68 internal DataBuffer Buffer |
|
69 { |
|
70 get { return iBuffer; } |
|
71 set { iBuffer = value; } |
|
72 } |
|
73 #endregion |
|
74 |
|
75 #region Internal methods |
|
76 #endregion |
|
77 |
|
78 #region Data members |
|
79 private readonly uint iAddress; |
|
80 private readonly byte iByte; |
|
81 private DataBuffer iBuffer = null; |
|
82 #endregion |
|
83 } |
|
84 } |