syncmlfw/dm/syncagent/inc/NSmlDMBitReader.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Bit reader utility
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __NSMLDMBITREADER_H
       
    21 #define __NSMLDMBITREADER_H
       
    22 
       
    23 //INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <s32mem.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 * 
       
    31 *  
       
    32 */
       
    33 class TNSmlDMBitreader : protected RDesReadStream
       
    34 	{
       
    35 public:
       
    36 	TNSmlDMBitreader( const TDesC8& aData );
       
    37 	TUint32 ReadUintL( TInt aBitcount );
       
    38 	void ReadL( TInt aBitcount, TDes8& aBuffer );
       
    39 private:
       
    40 	TUint32 FetchNextBitL();
       
    41 private:
       
    42 	TUint8 iByte;
       
    43 	TInt8 iBits;
       
    44 	};
       
    45 
       
    46 
       
    47 #endif  // __NSMLDMBITREADER_H
       
    48             
       
    49 // End of File