added setZWRAPdecompressionType
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user