Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RZip.cxx File Reference
#include "Compression.h"
#include "RConfigure.h"
#include "RZip.h"
#include "Bits.h"
#include "ZipLZMA.h"
#include "ZipLZ4.h"
#include "ZipZSTD.h"
#include "zlib.h"
#include <cstdio>
#include <cassert>
Include dependency graph for RZip.cxx:

Macros

#define HDRSIZE   9

Functions

static int is_valid_header (unsigned char *src)
static int is_valid_header_lz4 (unsigned char *src)
static int is_valid_header_lzma (unsigned char *src)
static int is_valid_header_old (unsigned char *src)
static int is_valid_header_zlib (unsigned char *src)
 Below are the routines for unzipping (inflating) buffers.
static int is_valid_header_zstd (unsigned char *src)
unsigned long R__crc32 (unsigned long crc, unsigned char *buf, unsigned int len)
ROOT::RCompressionSetting::EAlgorithm::EValues R__getCompressionAlgorithm (unsigned char *buf, size_t bufsize)
int R__SetZipMode (ROOT::RCompressionSetting::EAlgorithm::EValues mode)
int R__unzip (int *srcsize, uch *src, int *tgtsize, uch *tgt, int *irep)
int R__unzip_header (int *srcsize, uch *src, int *tgtsize)
static int R__unzipZLIB (int *srcsize, unsigned char *src, int *tgtsize, unsigned char *tgt, int *irep)
int R__zipMultipleAlgorithm (int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgt, int *irep, ROOT::RCompressionSetting::EAlgorithm::EValues compressionAlgorithm)
static int R__zipOld (int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgrt, int *irep)
 Forward decl's.
static int R__zipZLIB (int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgt, int *irep)
 Compress buffer contents using the venerable zlib algorithm.

Variables

ROOT::RCompressionSetting::EAlgorithm::EValues R__ZipMode = ROOT::RCompressionSetting::EAlgorithm::EValues::kZLIB

Macro Definition Documentation

◆ HDRSIZE

#define HDRSIZE   9

Definition at line 26 of file RZip.cxx.

Function Documentation

◆ is_valid_header()

int is_valid_header ( unsigned char * src)
static

Definition at line 269 of file RZip.cxx.

◆ is_valid_header_lz4()

int is_valid_header_lz4 ( unsigned char * src)
static

Definition at line 259 of file RZip.cxx.

◆ is_valid_header_lzma()

int is_valid_header_lzma ( unsigned char * src)
static

Definition at line 254 of file RZip.cxx.

◆ is_valid_header_old()

int is_valid_header_old ( unsigned char * src)
static

Definition at line 249 of file RZip.cxx.

◆ is_valid_header_zlib()

int is_valid_header_zlib ( unsigned char * src)
static

Below are the routines for unzipping (inflating) buffers.

Definition at line 244 of file RZip.cxx.

◆ is_valid_header_zstd()

int is_valid_header_zstd ( unsigned char * src)
static

Definition at line 264 of file RZip.cxx.

◆ R__crc32()

unsigned long R__crc32 ( unsigned long crc,
unsigned char * buf,
unsigned int len )

Definition at line 61 of file RZip.cxx.

◆ R__getCompressionAlgorithm()

ROOT::RCompressionSetting::EAlgorithm::EValues R__getCompressionAlgorithm ( unsigned char * buf,
size_t bufsize )

Definition at line 275 of file RZip.cxx.

◆ R__SetZipMode()

Definition at line 56 of file RZip.cxx.

◆ R__unzip()

int R__unzip ( int * srcsize,
uch * src,
int * tgtsize,
uch * tgt,
int * irep )

Definition at line 334 of file RZip.cxx.

◆ R__unzip_header()

int R__unzip_header ( int * srcsize,
uch * src,
int * tgtsize )

Definition at line 294 of file RZip.cxx.

◆ R__unzipZLIB()

int R__unzipZLIB ( int * srcsize,
unsigned char * src,
int * tgtsize,
unsigned char * tgt,
int * irep )
static

Definition at line 406 of file RZip.cxx.

◆ R__zipMultipleAlgorithm()

int R__zipMultipleAlgorithm ( int cxlevel,
int * srcsize,
char * src,
int * tgtsize,
char * tgt,
int * irep,
ROOT::RCompressionSetting::EAlgorithm::EValues compressionAlgorithm )

Definition at line 73 of file RZip.cxx.

◆ R__zipOld()

int R__zipOld ( int cxlevel,
int * srcsize,
char * src,
int * tgtsize,
char * tgrt,
int * irep )
static

Forward decl's.

Definition at line 115 of file RZip.cxx.

◆ R__zipZLIB()

int R__zipZLIB ( int cxlevel,
int * srcsize,
char * src,
int * tgtsize,
char * tgrt,
int * irep )
static

Compress buffer contents using the venerable zlib algorithm.

Definition at line 176 of file RZip.cxx.

Variable Documentation

◆ R__ZipMode