added setZWRAPdecompressionType

This commit is contained in:
inikep
2016-09-22 11:52:00 +02:00
parent bd76017329
commit d755717941
6 changed files with 111 additions and 72 deletions
+21 -6
View File
@@ -26,21 +26,36 @@ extern "C" {
#endif
#endif
/* enables/disables zstd compression during runtime */
void useZSTD(int turn_on);
/* check if zstd compression is turned on */
int isUsingZSTD(void);
/* returns a string with version of zstd library */
const char * zstdVersion(void);
/* COMPRESSION */
/* enables/disables zstd compression during runtime */
void useZSTDcompression(int turn_on);
/* check if zstd compression is turned on */
int 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);
/* DECOMPRESSION */
typedef enum { ZWRAP_FORCE_ZLIB, ZWRAP_FORCE_ZSTD, ZWRAP_AUTO } ZWRAP_decompress_type;
/* enables/disables automatic recognition of zstd/zlib compressed data during runtime */
void setZWRAPdecompressionType(ZWRAP_decompress_type type);
/* check zstd decompression type */
ZWRAP_decompress_type getZWRAPdecompressionType(void);
#if defined (__cplusplus)
}
#endif