crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianNativeTools/Source/sinflate.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 /*
       
    18 extern void InflateUnCompress(unsigned char* source, int sourcesize,unsigned char* dest, int destsize);
       
    19 
       
    20  void JNICALL Java_rofssym_SymbianInflater_InflateUncompress
       
    21   (JNIEnv *env, jobject, jbyteArray aSource, jbyteArray aDest)
       
    22 	{
       
    23 	jboolean isCopy; // ignored
       
    24 
       
    25 	jsize srcsize = env->GetArrayLength(aSource);
       
    26 	jsize dstsize = env->GetArrayLength(aDest);
       
    27 
       
    28 	unsigned char * src = (unsigned char *) env->GetByteArrayElements(aSource, &isCopy);
       
    29 	unsigned char * dst = (unsigned char *) env->GetByteArrayElements(aDest, &isCopy);
       
    30 
       
    31 	InflateUnCompress(src, srcsize, dst, dstsize);
       
    32 
       
    33 	env->ReleaseByteArrayElements(aSource, (jbyte *) src, 0);
       
    34 	env->ReleaseByteArrayElements(aDest, (jbyte *) dst, 0);
       
    35 	}
       
    36 
       
    37     	catch(ErrorHandler& error) 
       
    38 	{ 
       
    39 		error.Report();
       
    40 	} 
       
    41 
       
    42 
       
    43 */