Home
last modified time | relevance | path

Searched refs:neededInBuffSize (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1563 static int ZSTD_DCtx_isOverflow(ZSTD_DStream* zds, size_t const neededInBuffSize, size_t const need… in ZSTD_DCtx_isOverflow() argument
1565 …return (zds->inBuffSize + zds->outBuffSize) >= (neededInBuffSize + neededOutBuffSize) * ZSTD_WORKS… in ZSTD_DCtx_isOverflow()
1568 static void ZSTD_DCtx_updateOversizedDuration(ZSTD_DStream* zds, size_t const neededInBuffSize, siz… in ZSTD_DCtx_updateOversizedDuration() argument
1570 if (ZSTD_DCtx_isOverflow(zds, neededInBuffSize, neededOutBuffSize)) in ZSTD_DCtx_updateOversizedDuration()
1770 … { size_t const neededInBuffSize = MAX(zds->fParams.blockSizeMax, 4 /* frame checksum */); in ZSTD_decompressStream() local
1775 ZSTD_DCtx_updateOversizedDuration(zds, neededInBuffSize, neededOutBuffSize); in ZSTD_decompressStream()
1777 …{ int const tooSmall = (zds->inBuffSize < neededInBuffSize) || (zds->outBuffSize < neededOutBuff… in ZSTD_decompressStream()
1781 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream()
1783 (U32)zds->inBuffSize, (U32)neededInBuffSize); in ZSTD_decompressStream()
1799 zds->inBuffSize = neededInBuffSize; in ZSTD_decompressStream()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c26024 static int ZSTD_DCtx_isOverflow(ZSTD_DStream* zds, size_t const neededInBuffSize, size_t const need… in ZSTD_DCtx_isOverflow() argument
26026 …return (zds->inBuffSize + zds->outBuffSize) >= (neededInBuffSize + neededOutBuffSize) * ZSTD_WORKS… in ZSTD_DCtx_isOverflow()
26029 static void ZSTD_DCtx_updateOversizedDuration(ZSTD_DStream* zds, size_t const neededInBuffSize, siz… in ZSTD_DCtx_updateOversizedDuration() argument
26031 if (ZSTD_DCtx_isOverflow(zds, neededInBuffSize, neededOutBuffSize)) in ZSTD_DCtx_updateOversizedDuration()
26231 … { size_t const neededInBuffSize = MAX(zds->fParams.blockSizeMax, 4 /* frame checksum */); in ZSTD_decompressStream() local
26236 ZSTD_DCtx_updateOversizedDuration(zds, neededInBuffSize, neededOutBuffSize); in ZSTD_decompressStream()
26238 …{ int const tooSmall = (zds->inBuffSize < neededInBuffSize) || (zds->outBuffSize < neededOutBuff… in ZSTD_decompressStream()
26242 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream()
26244 (U32)zds->inBuffSize, (U32)neededInBuffSize); in ZSTD_decompressStream()
26260 zds->inBuffSize = neededInBuffSize; in ZSTD_decompressStream()