crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianNativeTools/Source/SymbianBytePair.cpp
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 #include "SymbianBytePair.h"
       
    18 
       
    19 // User includes
       
    20 #include "byte_pair.h"
       
    21 #include "e32errwrap.h"
       
    22 #include "pagedcompress.h"
       
    23 
       
    24 
       
    25 SYMBIANNATIVETOOL_API TInt SymbianBytePairUnpackRaw( TUint8* aSource, TInt aSourceSize, TUint8* aDest, TInt aDestSize )
       
    26 	{
       
    27     TUint8* notUsed = 0;
       
    28     const TInt ret = UnpackBytePair( aDest, aDestSize, aSource, aSourceSize, notUsed );
       
    29     return ret;
       
    30 	}
       
    31 
       
    32 SYMBIANNATIVETOOL_API TInt SymbianBytePairUnpackImage( TUint8* aSource, TInt aSourceSize, TUint8* aDest, TInt aDestSize, TInt* aAmountOfInputRead )
       
    33 	{
       
    34     TInt amountOfInputRead = 0;
       
    35     const TInt ret = UnpackBytePairE32Image( aSource, aSourceSize, aDest, aDestSize, amountOfInputRead );
       
    36     *aAmountOfInputRead = amountOfInputRead;
       
    37     return ret;
       
    38 	}
       
    39