From 20859afb4c9e2c97fbc843b60e929226b009b1fc Mon Sep 17 00:00:00 2001 From: inikep Date: Tue, 27 Sep 2016 17:27:43 +0200 Subject: [PATCH] renamed to ZWRAP_deflateReset_keepDict --- zlibWrapper/examples/zwrapbench.c | 6 +++--- zlibWrapper/zstd_zlibwrapper.c | 12 ++++++------ zlibWrapper/zstd_zlibwrapper.h | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/zlibWrapper/examples/zwrapbench.c b/zlibWrapper/examples/zwrapbench.c index 02e6b77d..d16fcfdd 100644 --- a/zlibWrapper/examples/zwrapbench.c +++ b/zlibWrapper/examples/zwrapbench.c @@ -298,14 +298,14 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize, U32 blockNb; for (blockNb=0; blockNbstate; if (zwc) zwc->comprState = 0; @@ -522,9 +522,9 @@ ZEXTERN int ZEXPORT z_inflateInit2_ OF((z_streamp strm, int windowBits, } } -int ZWRAP_inflateResetWithoutDict(z_streamp strm) +int ZWRAP_inflateReset_keepDict(z_streamp strm) { - LOG_WRAPPERD("- ZWRAP_inflateResetWithoutDict\n"); + LOG_WRAPPERD("- ZWRAP_inflateReset_keepDict\n"); if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) return inflateReset(strm); @@ -550,7 +550,7 @@ ZEXTERN int ZEXPORT z_inflateReset OF((z_streamp strm)) if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) return inflateReset(strm); - { int ret = ZWRAP_inflateResetWithoutDict(strm); + { int ret = ZWRAP_inflateReset_keepDict(strm); if (ret != Z_OK) return ret; } { ZWRAP_DCtx* zwd = (ZWRAP_DCtx*) strm->state; diff --git a/zlibWrapper/zstd_zlibwrapper.h b/zlibWrapper/zstd_zlibwrapper.h index f2e4ce26..9abbb7aa 100644 --- a/zlibWrapper/zstd_zlibwrapper.h +++ b/zlibWrapper/zstd_zlibwrapper.h @@ -48,7 +48,7 @@ int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize); /* Similar to deflateReset but preserves dictionary set using deflateSetDictionary. It should improve compression speed because there will be less calls to deflateSetDictionary When using zlib compression this method redirects to deflateReset. */ -int ZWRAP_deflateResetWithoutDict(z_streamp strm); +int ZWRAP_deflateReset_keepDict(z_streamp strm); @@ -67,7 +67,7 @@ int ZWRAP_isUsingZSTDdecompression(z_streamp strm); /* Similar to inflateReset but preserves dictionary set using inflateSetDictionary. inflate() will return Z_NEED_DICT only for the first time what will improve decompression speed. For zlib streams this method redirects to inflateReset. */ -int ZWRAP_inflateResetWithoutDict(z_streamp strm); +int ZWRAP_inflateReset_keepDict(z_streamp strm); #if defined (__cplusplus)