crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianImageLib/Common/Streams/SIMemoryStream.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 SymbianUtils;
       
    22 using SymbianImageLib.Common.Header;
       
    23 using SymbianStructuresLib.Compression.Common;
       
    24 
       
    25 namespace SymbianImageLib.Common.Streams
       
    26 {
       
    27     internal class SIMemoryStream : SIStream
       
    28     {
       
    29         #region Constructors
       
    30         public SIMemoryStream( uint aSize )
       
    31         {
       
    32             iData = new byte[ aSize ];
       
    33             base.SwitchStream( new MemoryStream( iData ), TOwnershipType.EOwned );
       
    34         }
       
    35         #endregion
       
    36 
       
    37         #region From SymbianImageStream
       
    38         #endregion
       
    39 
       
    40         #region API
       
    41         #endregion
       
    42 
       
    43         #region Properties
       
    44         public byte[] Data
       
    45         {
       
    46             get { return iData; }
       
    47         }
       
    48         #endregion
       
    49 
       
    50         #region Internal methods
       
    51         #endregion
       
    52 
       
    53         #region Data members
       
    54         private readonly byte[] iData;
       
    55         #endregion
       
    56     }
       
    57 }