Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-13 09:10:56

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,
0025                                         ROOT::RCompressionSetting::EAlgorithm::EValues algorithm);
0026 
0027 
0028 extern "C" ROOT::RCompressionSetting::EAlgorithm::EValues R__getCompressionAlgorithm(const unsigned char *buf, 
0029                                                                                      size_t bufsize);
0030 
0031 extern "C" void R__unzip(int *srcsize, unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep);
0032 
0033 extern "C" int R__unzip_header(int *srcsize, unsigned char *src, int *tgtsize);
0034 
0035 enum { kMAXZIPBUF = 0xffffff }; // 16 MB
0036 
0037 #endif