![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <zlib.h>
#include "zstd_zlibwrapper.h"
#include "zstd.h"
Data Structures | |
struct | ZWRAP_CCtx |
struct | ZWRAP_DCtx |
Macros | |
#define | ZWRAP_USE_ZSTD 0 |
#define | NO_DUMMY_DECL |
#define | ZLIB_CONST |
#define | ZSTD_STATIC_LINKING_ONLY /* ZSTD_isFrame, ZSTD_MAGICNUMBER, ZSTD_customMem */ |
#define | Z_INFLATE_SYNC 8 |
#define | ZLIB_HEADERSIZE 4 |
#define | ZSTD_HEADERSIZE ZSTD_FRAMEHEADERSIZE_MIN(ZSTD_f_zstd1) |
#define | ZWRAP_DEFAULT_CLEVEL 3 /* Z_DEFAULT_COMPRESSION is translated to ZWRAP_DEFAULT_CLEVEL for zstd */ |
#define | LOG_WRAPPERC(...) |
#define | LOG_WRAPPERD(...) |
#define | FINISH_WITH_GZ_ERR(msg) |
#define | FINISH_WITH_NULL_ERR(msg) |
#define | MIN(x, y) |
#define | __has_builtin(x) |
Enumerations | |
enum | ZWRAP_state_t { ZWRAP_useInit , ZWRAP_useReset , ZWRAP_streamEnd } |
enum | ZWRAP_stream_type { ZWRAP_ZLIB_STREAM , ZWRAP_ZSTD_STREAM , ZWRAP_UNKNOWN_STREAM } |
Functions | |
void | ZWRAP_useZSTDcompression (int turn_on) |
int | ZWRAP_isUsingZSTDcompression (void) |
void | ZWRAP_setDecompressionType (ZWRAP_decompress_type type) |
ZWRAP_decompress_type | ZWRAP_getDecompressionType (void) |
const char * | zstdVersion (void) |
ZEXTERN const char *ZEXPORT z_zlibVersion | _Z_OF ((void)) |
int | ZWRAP_setPledgedSrcSize (z_streamp strm, unsigned long long pledgedSrcSize) |
ZEXTERN int ZEXPORT z_deflateInit_ | _Z_OF ((z_streamp strm, int level, const char *version, int stream_size)) |
ZEXTERN int ZEXPORT z_deflateInit2_ | _Z_OF ((z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)) |
int | ZWRAP_deflateReset_keepDict (z_streamp strm) |
ZEXTERN int ZEXPORT z_deflateReset | _Z_OF ((z_streamp strm)) |
ZEXTERN int ZEXPORT z_deflateSetDictionary | _Z_OF ((z_streamp strm, const Bytef *dictionary, uInt dictLength)) |
ZEXTERN int ZEXPORT z_deflate | _Z_OF ((z_streamp strm, int flush)) |
ZEXTERN uLong ZEXPORT z_deflateBound | _Z_OF ((z_streamp strm, uLong sourceLen)) |
ZEXTERN int ZEXPORT z_deflateParams | _Z_OF ((z_streamp strm, int level, int strategy)) |
int | ZWRAP_isUsingZSTDdecompression (z_streamp strm) |
ZEXTERN int ZEXPORT z_inflateInit_ | _Z_OF ((z_streamp strm, const char *version, int stream_size)) |
ZEXTERN int ZEXPORT z_inflateInit2_ | _Z_OF ((z_streamp strm, int windowBits, const char *version, int stream_size)) |
int | ZWRAP_inflateReset_keepDict (z_streamp strm) |
ZEXTERN int ZEXPORT z_deflateCopy | _Z_OF ((z_streamp dest, z_streamp source)) |
ZEXTERN int ZEXPORT z_deflateTune | _Z_OF ((z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)) |
ZEXTERN int ZEXPORT z_deflatePrime | _Z_OF ((z_streamp strm, int bits, int value)) |
ZEXTERN int ZEXPORT z_deflateSetHeader | _Z_OF ((z_streamp strm, gz_headerp head)) |
ZEXTERN int ZEXPORT z_inflateBackInit_ | _Z_OF ((z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)) |
ZEXTERN int ZEXPORT z_inflateBack | _Z_OF ((z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)) |
ZEXTERN int ZEXPORT z_compress | _Z_OF ((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)) |
ZEXTERN int ZEXPORT z_compress2 | _Z_OF ((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)) |
ZEXTERN uLong ZEXPORT z_compressBound | _Z_OF ((uLong sourceLen)) |
ZEXTERN uLong ZEXPORT z_adler32 | _Z_OF ((uLong adler, const Bytef *buf, uInt len)) |
ZEXTERN uLong ZEXPORT z_crc32 | _Z_OF ((uLong crc, const Bytef *buf, uInt len)) |
ZEXTERN const char *ZEXPORT z_zError | _Z_OF ((int err)) |
#define __has_builtin | ( | x | ) |
#define FINISH_WITH_GZ_ERR | ( | msg | ) |
#define FINISH_WITH_NULL_ERR | ( | msg | ) |
#define LOG_WRAPPERC | ( | ... | ) |
#define LOG_WRAPPERD | ( | ... | ) |
#define MIN | ( | x, | |
y ) |
#define NO_DUMMY_DECL |
#define Z_INFLATE_SYNC 8 |
#define ZLIB_CONST |
#define ZLIB_HEADERSIZE 4 |
#define ZSTD_HEADERSIZE ZSTD_FRAMEHEADERSIZE_MIN(ZSTD_f_zstd1) |
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_isFrame, ZSTD_MAGICNUMBER, ZSTD_customMem */ |
#define ZWRAP_DEFAULT_CLEVEL 3 /* Z_DEFAULT_COMPRESSION is translated to ZWRAP_DEFAULT_CLEVEL for zstd */ |
#define ZWRAP_USE_ZSTD 0 |
enum ZWRAP_state_t |
enum ZWRAP_stream_type |
ZEXTERN int ZEXPORT z_compress _Z_OF | ( | (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen) | ) |
ZEXTERN int ZEXPORT z_compress2 _Z_OF | ( | (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level) | ) |
ZEXTERN int ZEXPORT z_deflateSetDictionary _Z_OF | ( | (z_streamp strm, const Bytef *dictionary, uInt dictLength) | ) |
ZEXTERN int ZEXPORT z_deflateSetHeader _Z_OF | ( | (z_streamp strm, gz_headerp head) | ) |
ZEXTERN int ZEXPORT z_inflateBack _Z_OF | ( | (z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc) | ) |
ZEXTERN int ZEXPORT z_deflateTune _Z_OF | ( | (z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain) | ) |
ZEXTERN int ZEXPORT z_deflateInit_ _Z_OF | ( | (z_streamp strm, int level, const char *version, int stream_size) | ) |
ZEXTERN int ZEXPORT z_deflateInit2_ _Z_OF | ( | (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) | ) |
ZEXTERN int ZEXPORT z_inflateInit2_ _Z_OF | ( | (z_streamp strm, int windowBits, const char *version, int stream_size) | ) |
ZEXTERN int ZEXPORT z_inflateBackInit_ _Z_OF | ( | (z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size) | ) |
const char * zstdVersion | ( | void | ) |
ZWRAP_decompress_type ZWRAP_getDecompressionType | ( | void | ) |
int ZWRAP_isUsingZSTDcompression | ( | void | ) |
void ZWRAP_setDecompressionType | ( | ZWRAP_decompress_type | type | ) |
void ZWRAP_useZSTDcompression | ( | int | turn_on | ) |