Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:29

0001 // @(#)root/zip:$Id$
0002 // Author: Sergey Linev   7 July 2014
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 #include "Compression.h"
0012 
0013 /**
0014  * These are definitions of various free functions for the C-style compression routines in ROOT.
0015  */
0016 
0017 #ifndef ROOT_RZip
0018 #define ROOT_RZip
0019 
0020 extern "C" unsigned long R__crc32(unsigned long crc, const unsigned char* buf, unsigned int len);
0021 
0022 extern "C" unsigned long R__memcompress(char *tgt, unsigned long tgtsize, char *src, unsigned long srcsize);
0023 
0024 extern "C" void R__zipMultipleAlgorithm(int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgt, int *irep, ROOT::RCompressionSetting::EAlgorithm::EValues);
0025 
0026 /**
0027  * This is a historical definition, prior to ROOT supporting multiple algorithms in a single file.  Use
0028  * R__zipMultipleAlgorithm instead.
0029  */
0030 extern "C" void R__zip(int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgt, int *irep);
0031 
0032 extern "C" void R__unzip(int *srcsize, unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep);
0033 
0034 extern "C" int R__unzip_header(int *srcsize, unsigned char *src, int *tgtsize);
0035 
0036 enum { kMAXZIPBUF = 0xffffff };
0037 
0038 #endif