Lines Matching refs:strm

71     z_streamp strm = (z_streamp) opaque;  in ZWRAP_allocFunction()  local
72 void* address = strm->zalloc(strm->opaque, 1, (uInt)size); in ZWRAP_allocFunction()
79 z_streamp strm = (z_streamp) opaque; in ZWRAP_freeFunction() local
80 strm->zfree(strm->opaque, address); in ZWRAP_freeFunction()
115 static ZWRAP_CCtx* ZWRAP_createCCtx(z_streamp strm) in ZWRAP_createCCtx() argument
119 if (strm->zalloc && strm->zfree) { in ZWRAP_createCCtx()
120 zwc = (ZWRAP_CCtx*)strm->zalloc(strm->opaque, 1, sizeof(ZWRAP_CCtx)); in ZWRAP_createCCtx()
123 memcpy(&zwc->allocFunc, strm, sizeof(z_stream)); in ZWRAP_createCCtx()
153 static int ZWRAPC_finishWithError(ZWRAP_CCtx* zwc, z_streamp strm, int error) in ZWRAPC_finishWithError() argument
157 if (strm) strm->state = NULL; in ZWRAPC_finishWithError()
162 static int ZWRAPC_finishWithErrorMsg(z_streamp strm, char* message) in ZWRAPC_finishWithErrorMsg() argument
164 ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in ZWRAPC_finishWithErrorMsg()
165 strm->msg = message; in ZWRAPC_finishWithErrorMsg()
168 return ZWRAPC_finishWithError(zwc, strm, 0); in ZWRAPC_finishWithErrorMsg()
172 int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize) in ZWRAP_setPledgedSrcSize() argument
174 ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in ZWRAP_setPledgedSrcSize()
183 ZEXTERN int ZEXPORT z_deflateInit_ OF((z_streamp strm, int level, in z_deflateInit_() argument
190 return deflateInit_((strm), (level), version, stream_size); in z_deflateInit_()
193 zwc = ZWRAP_createCCtx(strm); in z_deflateInit_()
202 strm->state = (struct internal_state*) zwc; /* use state which in not used by user */ in z_deflateInit_()
203 strm->total_in = 0; in z_deflateInit_()
204 strm->total_out = 0; in z_deflateInit_()
205 strm->adler = 0; in z_deflateInit_()
210 ZEXTERN int ZEXPORT z_deflateInit2_ OF((z_streamp strm, int level, int method, in z_deflateInit2_() argument
216 … return deflateInit2_(strm, level, method, windowBits, memLevel, strategy, version, stream_size); in z_deflateInit2_()
218 return z_deflateInit_ (strm, level, version, stream_size); in z_deflateInit2_()
222 int ZWRAP_deflateReset_keepDict(z_streamp strm) in ZWRAP_deflateReset_keepDict() argument
226 return deflateReset(strm); in ZWRAP_deflateReset_keepDict()
228 { ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in ZWRAP_deflateReset_keepDict()
235 strm->total_in = 0; in ZWRAP_deflateReset_keepDict()
236 strm->total_out = 0; in ZWRAP_deflateReset_keepDict()
237 strm->adler = 0; in ZWRAP_deflateReset_keepDict()
242 ZEXTERN int ZEXPORT z_deflateReset OF((z_streamp strm)) in z_deflateReset() argument
246 return deflateReset(strm); in z_deflateReset()
248 ZWRAP_deflateReset_keepDict(strm); in z_deflateReset()
250 { ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in z_deflateReset()
257 ZEXTERN int ZEXPORT z_deflateSetDictionary OF((z_streamp strm, in z_deflateSetDictionary() argument
263 return deflateSetDictionary(strm, dictionary, dictLength); in z_deflateSetDictionary()
266 { ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in z_deflateSetDictionary()
271 if (zwc->zbc == NULL) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflateSetDictionary()
274 if (res != Z_OK) return ZWRAPC_finishWithError(zwc, strm, res); } in z_deflateSetDictionary()
282 ZEXTERN int ZEXPORT z_deflate OF((z_streamp strm, int flush)) in z_deflate() argument
288 … (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out); in z_deflate()
289 return deflate(strm, flush); in z_deflate()
292 zwc = (ZWRAP_CCtx*) strm->state; in z_deflate()
297 if (zwc->zbc == NULL) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
298 …{ int const initErr = ZWRAP_initializeCStream(zwc, NULL, 0, (flush == Z_FINISH) ? strm->avail_in :… in z_deflate()
299 if (initErr != Z_OK) return ZWRAPC_finishWithError(zwc, strm, initErr); } in z_deflate()
304 …size_t const resetErr = ZSTD_resetCStream(zwc->zbc, (flush == Z_FINISH) ? strm->avail_in : zwc->pl… in z_deflate()
308 return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
311 …int const res = ZWRAP_initializeCStream(zwc, NULL, 0, (flush == Z_FINISH) ? strm->avail_in : ZSTD_… in z_deflate()
312 if (res != Z_OK) return ZWRAPC_finishWithError(zwc, strm, res); in z_deflate()
318 …l_in=%d total_out=%d\n", (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_i… in z_deflate()
319 if (strm->avail_in > 0) { in z_deflate()
320 zwc->inBuffer.src = strm->next_in; in z_deflate()
321 zwc->inBuffer.size = strm->avail_in; in z_deflate()
323 zwc->outBuffer.dst = strm->next_out; in z_deflate()
324 zwc->outBuffer.size = strm->avail_out; in z_deflate()
328 if (ZSTD_isError(cErr)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
330 strm->next_out += zwc->outBuffer.pos; in z_deflate()
331 strm->total_out += zwc->outBuffer.pos; in z_deflate()
332 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
333 strm->total_in += zwc->inBuffer.pos; in z_deflate()
335 strm->next_in += zwc->inBuffer.pos; in z_deflate()
336 strm->avail_in -= zwc->inBuffer.pos; in z_deflate()
344 … return ZWRAPC_finishWithErrorMsg(strm, "Z_FULL_FLUSH, Z_BLOCK and Z_TREES are not supported!"); in z_deflate()
349 zwc->outBuffer.dst = strm->next_out; in z_deflate()
350 zwc->outBuffer.size = strm->avail_out; in z_deflate()
353 …LOG_WRAPPERC("deflate ZSTD_endStream dstCapacity=%d bytesLeft=%d\n", (int)strm->avail_out, (int)by… in z_deflate()
354 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
355 strm->next_out += zwc->outBuffer.pos; in z_deflate()
356 strm->total_out += zwc->outBuffer.pos; in z_deflate()
357 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
361 (int)strm->total_in, (int)strm->avail_out, (int)strm->total_out); in z_deflate()
367 zwc->outBuffer.dst = strm->next_out; in z_deflate()
368 zwc->outBuffer.size = strm->avail_out; in z_deflate()
371 …LOG_WRAPPERC("deflate ZSTD_flushStream dstCapacity=%d bytesLeft=%d\n", (int)strm->avail_out, (int)… in z_deflate()
372 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
373 strm->next_out += zwc->outBuffer.pos; in z_deflate()
374 strm->total_out += zwc->outBuffer.pos; in z_deflate()
375 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
377 …l_in=%d total_out=%d\n", (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_i… in z_deflate()
382 ZEXTERN int ZEXPORT z_deflateEnd OF((z_streamp strm)) in z_deflateEnd() argument
386 return deflateEnd(strm); in z_deflateEnd()
388 …LOG_WRAPPERC("- deflateEnd total_in=%d total_out=%d\n", (int)(strm->total_in), (int)(strm->total_o… in z_deflateEnd()
390 ZWRAP_CCtx* zwc = (ZWRAP_CCtx*) strm->state; in z_deflateEnd()
392 strm->state = NULL; in z_deflateEnd()
400 ZEXTERN uLong ZEXPORT z_deflateBound OF((z_streamp strm, in z_deflateBound() argument
404 return deflateBound(strm, sourceLen); in z_deflateBound()
410 ZEXTERN int ZEXPORT z_deflateParams OF((z_streamp strm, in z_deflateParams() argument
416 return deflateParams(strm, level, strategy); in z_deflateParams()
455 static ZWRAP_DCtx* ZWRAP_createDCtx(z_streamp strm) in ZWRAP_createDCtx() argument
460 if (strm->zalloc && strm->zfree) { in ZWRAP_createDCtx()
461 zwd = (ZWRAP_DCtx*)strm->zalloc(strm->opaque, 1, sizeof(ZWRAP_DCtx)); in ZWRAP_createDCtx()
464 zwd->allocFunc = *strm; /* just to copy zalloc, zfree & opaque */ in ZWRAP_createDCtx()
486 int ZWRAP_isUsingZSTDdecompression(z_streamp strm) in ZWRAP_isUsingZSTDdecompression() argument
488 if (strm == NULL) return 0; in ZWRAP_isUsingZSTDdecompression()
489 return (strm->reserved == ZWRAP_ZSTD_STREAM); in ZWRAP_isUsingZSTDdecompression()
493 static int ZWRAPD_finishWithError(ZWRAP_DCtx* zwd, z_streamp strm, int error) in ZWRAPD_finishWithError() argument
497 strm->state = NULL; in ZWRAPD_finishWithError()
501 static int ZWRAPD_finishWithErrorMsg(z_streamp strm, char* message) in ZWRAPD_finishWithErrorMsg() argument
503 ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*) strm->state; in ZWRAPD_finishWithErrorMsg()
504 strm->msg = message; in ZWRAPD_finishWithErrorMsg()
507 return ZWRAPD_finishWithError(zwd, strm, 0); in ZWRAPD_finishWithErrorMsg()
511 ZEXTERN int ZEXPORT z_inflateInit_ OF((z_streamp strm, in z_inflateInit_() argument
515 strm->reserved = ZWRAP_ZLIB_STREAM; in z_inflateInit_()
516 return inflateInit(strm); in z_inflateInit_()
519 { ZWRAP_DCtx* const zwd = ZWRAP_createDCtx(strm); in z_inflateInit_()
521 if (zwd == NULL) return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateInit_()
524 if (zwd->version == NULL) return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateInit_()
529 strm->state = (struct internal_state*) zwd; in z_inflateInit_()
530 strm->total_in = 0; in z_inflateInit_()
531 strm->total_out = 0; in z_inflateInit_()
532 strm->reserved = ZWRAP_UNKNOWN_STREAM; in z_inflateInit_()
533 strm->adler = 0; in z_inflateInit_()
540 ZEXTERN int ZEXPORT z_inflateInit2_ OF((z_streamp strm, int windowBits, in z_inflateInit2_() argument
544 return inflateInit2_(strm, windowBits, version, stream_size); in z_inflateInit2_()
547 { int const ret = z_inflateInit_ (strm, version, stream_size); in z_inflateInit2_()
550 ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*)strm->state; in z_inflateInit2_()
558 int ZWRAP_inflateReset_keepDict(z_streamp strm) in ZWRAP_inflateReset_keepDict() argument
561 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in ZWRAP_inflateReset_keepDict()
562 return inflateReset(strm); in ZWRAP_inflateReset_keepDict()
564 { ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*) strm->state; in ZWRAP_inflateReset_keepDict()
571 strm->total_in = 0; in ZWRAP_inflateReset_keepDict()
572 strm->total_out = 0; in ZWRAP_inflateReset_keepDict()
577 ZEXTERN int ZEXPORT z_inflateReset OF((z_streamp strm)) in z_inflateReset() argument
580 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateReset()
581 return inflateReset(strm); in z_inflateReset()
583 { int const ret = ZWRAP_inflateReset_keepDict(strm); in z_inflateReset()
586 { ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*) strm->state; in z_inflateReset()
595 ZEXTERN int ZEXPORT z_inflateReset2 OF((z_streamp strm, in z_inflateReset2() argument
598 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateReset2()
599 return inflateReset2(strm, windowBits); in z_inflateReset2()
601 { int const ret = z_inflateReset (strm); in z_inflateReset2()
603 ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*)strm->state; in z_inflateReset2()
613 ZEXTERN int ZEXPORT z_inflateSetDictionary OF((z_streamp strm, in z_inflateSetDictionary() argument
618 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateSetDictionary()
619 return inflateSetDictionary(strm, dictionary, dictLength); in z_inflateSetDictionary()
621 { ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*) strm->state; in z_inflateSetDictionary()
624 if (ZSTD_isError(initErr)) return ZWRAPD_finishWithError(zwd, strm, 0); } in z_inflateSetDictionary()
631 zwd->outBuffer.dst = strm->next_out; in z_inflateSetDictionary()
640 return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateSetDictionary()
647 ZEXTERN int ZEXPORT z_inflate OF((z_streamp strm, int flush)) in z_inflate() argument
651 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) { in z_inflate()
652 int const result = inflate(strm, flush); in z_inflate()
654 …(int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out, … in z_inflate()
658 if (strm->avail_in <= 0) return Z_OK; in z_inflate()
660 zwd = (ZWRAP_DCtx*) strm->state; in z_inflate()
662 … (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out); in z_inflate()
668 if (zwd->totalInBytes == 0 && strm->avail_in >= ZLIB_HEADERSIZE) { in z_inflate()
669 if (MEM_readLE32(strm->next_in) != ZSTD_MAGICNUMBER) { in z_inflate()
671 … inflateInit2_(strm, zwd->windowBits, zwd->version, zwd->stream_size) : in z_inflate()
672 inflateInit_(strm, zwd->version, zwd->stream_size); in z_inflate()
674 if (initErr != Z_OK) return ZWRAPD_finishWithError(zwd, strm, initErr); in z_inflate()
677 strm->reserved = ZWRAP_ZLIB_STREAM; in z_inflate()
682 inflateSync(strm) : in z_inflate()
683 inflate(strm, flush); in z_inflate()
685 …(int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out, … in z_inflate()
689 size_t const srcSize = MIN(strm->avail_in, ZLIB_HEADERSIZE - zwd->totalInBytes); in z_inflate()
690 memcpy(zwd->headerBuf+zwd->totalInBytes, strm->next_in, srcSize); in z_inflate()
691 strm->total_in += srcSize; in z_inflate()
693 strm->next_in += srcSize; in z_inflate()
694 strm->avail_in -= srcSize; in z_inflate()
699 strm2.next_in = strm->next_in; in z_inflate()
700 strm2.avail_in = strm->avail_in; in z_inflate()
701 strm2.next_out = strm->next_out; in z_inflate()
702 strm2.avail_out = strm->avail_out; in z_inflate()
705 … inflateInit2_(strm, zwd->windowBits, zwd->version, zwd->stream_size) : in z_inflate()
706 inflateInit_(strm, zwd->version, zwd->stream_size); in z_inflate()
708 if (initErr != Z_OK) return ZWRAPD_finishWithError(zwd, strm, initErr); in z_inflate()
712 strm->next_in = (unsigned char*)zwd->headerBuf; in z_inflate()
713 strm->avail_in = ZLIB_HEADERSIZE; in z_inflate()
714 strm->avail_out = 0; in z_inflate()
715 { int const dErr = inflate(strm, Z_NO_FLUSH); in z_inflate()
717 dErr, (int)strm->avail_in); in z_inflate()
719 return ZWRAPD_finishWithError(zwd, strm, dErr); in z_inflate()
721 if (strm->avail_in > 0) goto error; in z_inflate()
723 strm->next_in = strm2.next_in; in z_inflate()
724 strm->avail_in = strm2.avail_in; in z_inflate()
725 strm->next_out = strm2.next_out; in z_inflate()
726 strm->avail_out = strm2.avail_out; in z_inflate()
728 strm->reserved = ZWRAP_ZLIB_STREAM; /* mark as zlib stream */ in z_inflate()
733 inflateSync(strm) : in z_inflate()
734 inflate(strm, flush); in z_inflate()
736 …(int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out, … in z_inflate()
741 strm->reserved = ZWRAP_ZSTD_STREAM; /* mark as zstd steam */ in z_inflate()
743 if (flush == Z_INFLATE_SYNC) { strm->msg = "inflateSync is not supported!"; goto error; } in z_inflate()
752 if (zwd->totalInBytes == 0 && strm->avail_in >= ZSTD_HEADERSIZE) { in z_inflate()
765 size_t const srcSize = MIN(strm->avail_in, ZSTD_HEADERSIZE - zwd->totalInBytes); in z_inflate()
766 memcpy(zwd->headerBuf+zwd->totalInBytes, strm->next_in, srcSize); in z_inflate()
767 strm->total_in += srcSize; in z_inflate()
769 strm->next_in += srcSize; in z_inflate()
770 strm->avail_in -= srcSize; in z_inflate()
788 zwd->outBuffer.dst = strm->next_out; in z_inflate()
802 zwd->inBuffer.src = strm->next_in; in z_inflate()
803 zwd->inBuffer.size = strm->avail_in; in z_inflate()
805 zwd->outBuffer.dst = strm->next_out; in z_inflate()
806 zwd->outBuffer.size = strm->avail_out; in z_inflate()
810 (int)dErr, (int)strm->avail_in, (int)strm->avail_out); in z_inflate()
819 strm->next_out += zwd->outBuffer.pos; in z_inflate()
820 strm->total_out += zwd->outBuffer.pos; in z_inflate()
821 strm->avail_out -= zwd->outBuffer.pos; in z_inflate()
822 strm->total_in += zwd->inBuffer.pos; in z_inflate()
824 strm->next_in += zwd->inBuffer.pos; in z_inflate()
825 strm->avail_in -= zwd->inBuffer.pos; in z_inflate()
828 … (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out); in z_inflate()
835 …(int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out, … in z_inflate()
839 return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflate()
843 ZEXTERN int ZEXPORT z_inflateEnd OF((z_streamp strm)) in z_inflateEnd() argument
845 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateEnd()
846 return inflateEnd(strm); in z_inflateEnd()
849 (int)(strm->total_in), (int)(strm->total_out)); in z_inflateEnd()
850 { ZWRAP_DCtx* const zwd = (ZWRAP_DCtx*) strm->state; in z_inflateEnd()
854 strm->state = NULL; in z_inflateEnd()
860 ZEXTERN int ZEXPORT z_inflateSync OF((z_streamp strm)) in z_inflateSync() argument
862 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) { in z_inflateSync()
863 return inflateSync(strm); in z_inflateSync()
866 return z_inflate(strm, Z_INFLATE_SYNC); in z_inflateSync()
881 ZEXTERN int ZEXPORT z_deflateTune OF((z_streamp strm, in z_deflateTune() argument
888 return deflateTune(strm, good_length, max_lazy, nice_length, max_chain); in z_deflateTune()
889 return ZWRAPC_finishWithErrorMsg(strm, "deflateTune is not supported!"); in z_deflateTune()
894 ZEXTERN int ZEXPORT z_deflatePending OF((z_streamp strm, in z_deflatePending() argument
899 return deflatePending(strm, pending, bits); in z_deflatePending()
900 return ZWRAPC_finishWithErrorMsg(strm, "deflatePending is not supported!"); in z_deflatePending()
905 ZEXTERN int ZEXPORT z_deflatePrime OF((z_streamp strm, in z_deflatePrime() argument
910 return deflatePrime(strm, bits, value); in z_deflatePrime()
911 return ZWRAPC_finishWithErrorMsg(strm, "deflatePrime is not supported!"); in z_deflatePrime()
915 ZEXTERN int ZEXPORT z_deflateSetHeader OF((z_streamp strm, in z_deflateSetHeader() argument
919 return deflateSetHeader(strm, head); in z_deflateSetHeader()
920 return ZWRAPC_finishWithErrorMsg(strm, "deflateSetHeader is not supported!"); in z_deflateSetHeader()
928 ZEXTERN int ZEXPORT z_inflateGetDictionary OF((z_streamp strm, in z_inflateGetDictionary() argument
932 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateGetDictionary()
933 return inflateGetDictionary(strm, dictionary, dictLength); in z_inflateGetDictionary()
934 return ZWRAPD_finishWithErrorMsg(strm, "inflateGetDictionary is not supported!"); in z_inflateGetDictionary()
949 ZEXTERN long ZEXPORT z_inflateMark OF((z_streamp strm)) in z_inflateMark() argument
951 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateMark()
952 return inflateMark(strm); in z_inflateMark()
953 return ZWRAPD_finishWithErrorMsg(strm, "inflateMark is not supported!"); in z_inflateMark()
958 ZEXTERN int ZEXPORT z_inflatePrime OF((z_streamp strm, in z_inflatePrime() argument
962 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflatePrime()
963 return inflatePrime(strm, bits, value); in z_inflatePrime()
964 return ZWRAPD_finishWithErrorMsg(strm, "inflatePrime is not supported!"); in z_inflatePrime()
968 ZEXTERN int ZEXPORT z_inflateGetHeader OF((z_streamp strm, in z_inflateGetHeader() argument
971 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateGetHeader()
972 return inflateGetHeader(strm, head); in z_inflateGetHeader()
973 return ZWRAPD_finishWithErrorMsg(strm, "inflateGetHeader is not supported!"); in z_inflateGetHeader()
977 ZEXTERN int ZEXPORT z_inflateBackInit_ OF((z_streamp strm, int windowBits, in z_inflateBackInit_() argument
982 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateBackInit_()
983 return inflateBackInit_(strm, windowBits, window, version, stream_size); in z_inflateBackInit_()
984 return ZWRAPD_finishWithErrorMsg(strm, "inflateBackInit is not supported!"); in z_inflateBackInit_()
988 ZEXTERN int ZEXPORT z_inflateBack OF((z_streamp strm, in z_inflateBack() argument
992 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateBack()
993 return inflateBack(strm, in, in_desc, out, out_desc); in z_inflateBack()
994 return ZWRAPD_finishWithErrorMsg(strm, "inflateBack is not supported!"); in z_inflateBack()
998 ZEXTERN int ZEXPORT z_inflateBackEnd OF((z_streamp strm)) in z_inflateBackEnd() argument
1000 if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB || !strm->reserved) in z_inflateBackEnd()
1001 return inflateBackEnd(strm); in z_inflateBackEnd()
1002 return ZWRAPD_finishWithErrorMsg(strm, "inflateBackEnd is not supported!"); in z_inflateBackEnd()