Lines Matching +full:0 +full:x1280
14 #define ZWRAP_USE_ZSTD 0
52 return one.c[0]; in ZWRAP_isLittleEndian()
56 # define __has_builtin(x) 0
67 return ((in << 24) & 0xff000000 ) | in ZWRAP_swap32()
68 ((in << 8) & 0x00ff0000 ) | in ZWRAP_swap32()
69 ((in >> 8) & 0x0000ff00 ) | in ZWRAP_swap32()
70 ((in >> 24) & 0x000000ff ); in ZWRAP_swap32()
86 static int g_ZWRAP_useZSTDcompression = ZWRAP_USE_ZSTD; /* 0 = don't use ZSTD */
134 memset(ptr, 0, size); in ZWRAP_customCalloc()
174 if (zwc==NULL) return 0; /* support free on NULL */ in ZWRAP_freeCCtx()
177 return 0; in ZWRAP_freeCCtx()
208 { unsigned initErr = 0; in ZWRAP_initializeCStream()
244 return ZWRAPC_finishWithError(zwc, strm, 0); in ZWRAPC_finishWithErrorMsg()
279 zwc->streamEnd = 0; in z_deflateInit_()
280 zwc->totalInBytes = 0; in z_deflateInit_()
283 strm->total_in = 0; in z_deflateInit_()
284 strm->total_out = 0; in z_deflateInit_()
285 strm->adler = 0; in z_deflateInit_()
310 zwc->streamEnd = 0; in ZWRAP_deflateReset_keepDict()
311 zwc->totalInBytes = 0; in ZWRAP_deflateReset_keepDict()
315 strm->total_in = 0; in ZWRAP_deflateReset_keepDict()
316 strm->total_out = 0; in ZWRAP_deflateReset_keepDict()
317 strm->adler = 0; in ZWRAP_deflateReset_keepDict()
351 if (zwc->zbc == NULL) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflateSetDictionary()
377 if (zwc->zbc == NULL) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
378 …{ int const initErr = ZWRAP_initializeCStream(zwc, NULL, 0, (flush == Z_FINISH) ? strm->avail_in :… in z_deflate()
382 if (zwc->totalInBytes == 0) { in z_deflate()
388 return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
394 return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
397 …int const res = ZWRAP_initializeCStream(zwc, NULL, 0, (flush == Z_FINISH) ? strm->avail_in : ZSTD_… in z_deflate()
401 } /* (zwc->totalInBytes == 0) */ in z_deflate()
405 if (strm->avail_in > 0) { in z_deflate()
408 zwc->inBuffer.pos = 0; in z_deflate()
411 zwc->outBuffer.pos = 0; in z_deflate()
414 if (ZSTD_isError(cErr)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
426 #if ZLIB_VERNUM >= 0x1240 in z_deflate()
437 zwc->outBuffer.pos = 0; in z_deflate()
440 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
444 if (bytesLeft == 0) { in z_deflate()
455 zwc->outBuffer.pos = 0; in z_deflate()
458 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
536 zwd->errorCount = 0; in ZWRAP_initDCtx()
537 zwd->outBuffer.pos = 0; in ZWRAP_initDCtx()
538 zwd->outBuffer.size = 0; in ZWRAP_initDCtx()
564 if (zwd==NULL) return 0; /* support free on null */ in ZWRAP_freeDCtx()
568 return 0; in ZWRAP_freeDCtx()
574 if (strm == NULL) return 0; in ZWRAP_isUsingZSTDdecompression()
593 return ZWRAPD_finishWithError(zwd, strm, 0); in ZWRAPD_finishWithErrorMsg()
607 if (zwd == NULL) return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateInit_()
610 if (zwd->version == NULL) return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateInit_()
614 zwd->totalInBytes = 0; in z_inflateInit_()
616 strm->total_in = 0; in z_inflateInit_()
617 strm->total_out = 0; in z_inflateInit_()
619 strm->adler = 0; in z_inflateInit_()
654 zwd->totalInBytes = 0; in ZWRAP_inflateReset_keepDict()
657 strm->total_in = 0; in ZWRAP_inflateReset_keepDict()
658 strm->total_out = 0; in ZWRAP_inflateReset_keepDict()
680 #if ZLIB_VERNUM >= 0x1240
710 if (ZSTD_isError(initErr)) return ZWRAPD_finishWithError(zwd, strm, 0); } in z_inflateSetDictionary()
716 zwd->inBuffer.pos = 0; in z_inflateSetDictionary()
718 zwd->outBuffer.size = 0; in z_inflateSetDictionary()
719 zwd->outBuffer.pos = 0; in z_inflateSetDictionary()
726 return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflateSetDictionary()
744 if (strm->avail_in <= 0) return Z_OK; in z_inflate()
754 if (zwd->totalInBytes == 0 && strm->avail_in >= ZLIB_HEADERSIZE) { in z_inflate()
774 } else { /* ! (zwd->totalInBytes == 0 && strm->avail_in >= ZLIB_HEADERSIZE) */ in z_inflate()
800 strm->avail_out = 0; in z_inflate()
807 if (strm->avail_in > 0) goto error; in z_inflate()
824 } } } /* if ! (zwd->totalInBytes == 0 && strm->avail_in >= ZLIB_HEADERSIZE) */ in z_inflate()
838 if (zwd->totalInBytes == 0 && strm->avail_in >= ZSTD_HEADERSIZE) { in z_inflate()
873 zwd->inBuffer.pos = 0; in z_inflate()
875 zwd->outBuffer.size = 0; in z_inflate()
876 zwd->outBuffer.pos = 0; in z_inflate()
890 zwd->inBuffer.pos = 0; in z_inflate()
893 zwd->outBuffer.pos = 0; in z_inflate()
912 if (dErr == 0) { in z_inflate()
925 return ZWRAPD_finishWithError(zwd, strm, 0); in z_inflate()
979 #if ZLIB_VERNUM >= 0x1260
1013 #if ZLIB_VERNUM >= 0x1280
1034 #if ZLIB_VERNUM >= 0x1240
1173 #if ZLIB_VERNUM >= 0x12B0
1186 #if ZLIB_VERNUM >= 0x1270