perfsrv/memspy/Driver/User/Include/MemSpyDriverStreamReaderImp.h
changeset 48 516af714ebb4
equal deleted inserted replaced
45:185201be11b0 48:516af714ebb4
       
     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 #ifndef MEMSPYDRIVERSTREAMREADERIMP_H
       
    19 #define MEMSPYDRIVERSTREAMREADERIMP_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // Classes referenced
       
    25 
       
    26 
       
    27 class CMemSpyMemStreamReader : public CBase
       
    28     {
       
    29 public:
       
    30     CMemSpyMemStreamReader( const TDesC8& aData );
       
    31     void ConstructL();
       
    32     
       
    33 public: // API
       
    34     TInt32 ReadInt32L();
       
    35     TUint32 ReadUint32L();
       
    36     void ReadL( TDes8& aDes );
       
    37     void ReadL( TDes16& aDes );
       
    38 
       
    39 private: // Internal methods
       
    40     void IsAvailableL( TInt aRequired ) const;
       
    41     void IncrementPos( TInt aAmount );
       
    42 
       
    43 private: // Data members
       
    44     const TUint8* iCurrent;
       
    45     const TUint8* iMax;
       
    46     };
       
    47 
       
    48 
       
    49 #endif