Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-08 09:25:12

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 namespace ROOT::Internal {
0021 
0022 constexpr int kZipHeaderSize = 9; ///< Number of bytes of the ROOT compression block header
0023 
0024 } // namespace ROOT::Internal
0025 
0026 extern "C" unsigned long R__crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
0027 
0028 extern "C" unsigned long R__memcompress(char *tgt, unsigned long tgtsize, const char *src, unsigned long srcsize);
0029 
0030 extern "C" void R__zipMultipleAlgorithm(int cxlevel, int *srcsize, const char *src, int *tgtsize, char *tgt, int *irep,
0031                                         ROOT::RCompressionSetting::EAlgorithm::EValues algorithm);
0032 
0033 extern "C" ROOT::RCompressionSetting::EAlgorithm::EValues
0034 R__getCompressionAlgorithm(const unsigned char *buf, size_t bufsize);
0035 
0036 extern "C" void R__unzip(int *srcsize, const unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep);
0037 
0038 extern "C" int R__unzip_header(int *srcsize, const unsigned char *src, int *tgtsize);
0039 
0040 enum { kMAXZIPBUF = 0xffffff }; // 16 MB
0041 
0042 #endif