a new ZWRAP API

This commit is contained in:
inikep
2016-09-23 09:08:40 +02:00
parent 16fa12a51a
commit 252c20dd34
6 changed files with 88 additions and 87 deletions
+6 -6
View File
@@ -32,25 +32,25 @@ const char * zstdVersion(void);
/* COMPRESSION */
/* enables/disables zstd compression during runtime */
void useZSTDcompression(int turn_on);
void ZWRAP_useZSTDcompression(int turn_on);
/* check if zstd compression is turned on */
int isUsingZSTDcompression(void);
int ZWRAP_isUsingZSTDcompression(void);
/* Changes a pledged source size for a given compression stream.
It will change ZSTD compression parameters what may improve compression speed and/or ratio.
The function should be called just after deflateInit(). */
int ZSTD_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize);
int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize);
/* DECOMPRESSION */
typedef enum { ZWRAP_FORCE_ZLIB, ZWRAP_FORCE_ZSTD, ZWRAP_AUTO } ZWRAP_decompress_type;
typedef enum { ZWRAP_FORCE_ZLIB, ZWRAP_AUTO } ZWRAP_decompress_type;
/* enables/disables automatic recognition of zstd/zlib compressed data during runtime */
void setZWRAPdecompressionType(ZWRAP_decompress_type type);
void ZWRAP_setDecompressionType(ZWRAP_decompress_type type);
/* check zstd decompression type */
ZWRAP_decompress_type getZWRAPdecompressionType(void);
ZWRAP_decompress_type ZWRAP_getDecompressionType(void);