Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RZip.h
Go to the documentation of this file.
1// @(#)root/zip:$Id$
2// Author: Sergey Linev 7 July 2014
3
4/*************************************************************************
5 * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#include "Compression.h"
12
13/**
14 * These are definitions of various free functions for the C-style compression routines in ROOT.
15 */
16
17#ifndef ROOT_RZip
18#define ROOT_RZip
19
20namespace ROOT::Internal {
21
22constexpr int kZipHeaderSize = 9; ///< Number of bytes of the ROOT compression block header
23
24} // namespace ROOT::Internal
25
26extern "C" unsigned long R__crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
27
28extern "C" unsigned long R__memcompress(char *tgt, unsigned long tgtsize, const char *src, unsigned long srcsize);
29
30extern "C" void R__zipMultipleAlgorithm(int cxlevel, int *srcsize, const char *src, int *tgtsize, char *tgt, int *irep,
32
34R__getCompressionAlgorithm(const unsigned char *buf, size_t bufsize);
35
36extern "C" void R__unzip(int *srcsize, const unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep);
37
38extern "C" int R__unzip_header(int *srcsize, const unsigned char *src, int *tgtsize);
39
40enum { kMAXZIPBUF = 0xffffff }; // 16 MB
41
42#endif
ROOT::RCompressionSetting::EAlgorithm::EValues R__getCompressionAlgorithm(const unsigned char *buf, size_t bufsize)
void R__zipMultipleAlgorithm(int cxlevel, int *srcsize, const char *src, int *tgtsize, char *tgt, int *irep, ROOT::RCompressionSetting::EAlgorithm::EValues algorithm)
unsigned long R__memcompress(char *tgt, unsigned long tgtsize, const char *src, unsigned long srcsize)
int R__unzip_header(int *srcsize, const unsigned char *src, int *tgtsize)
void R__unzip(int *srcsize, const unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep)
unsigned long R__crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
@ kMAXZIPBUF
Definition RZip.h:40
Int_t bufsize
Definition h2root.cxx:268
These are definitions of various free functions for the C-style compression routines in ROOT.
Definition TPython.h:26
constexpr int kZipHeaderSize
Number of bytes of the ROOT compression block header.
Definition RZip.h:22
EValues
Note: this is only temporarily a struct and will become a enum class hence the name convention used.
Definition Compression.h:88