Searched refs:neededInBuffSize (Results 1 – 1 of 1) sorted by relevance
/linux/lib/zstd/decompress/ ! |
H A D | zstd_decompress.c | 1939 static int ZSTD_DCtx_isOverflow(ZSTD_DStream* zds, size_t const neededInBuffSize, size_t const neededOutBuffSize) in ZSTD_DCtx_isOverflow() argument 1941 return (zds->inBuffSize + zds->outBuffSize) >= (neededInBuffSize + neededOutBuffSize) * ZSTD_WORKSPACETOOLARGE_FACTOR; in ZSTD_DCtx_isOverflow() 1944 static void ZSTD_DCtx_updateOversizedDuration(ZSTD_DStream* zds, size_t const neededInBuffSize, size_t const neededOutBuffSize) in ZSTD_DCtx_updateOversizedDuration() argument 1946 if (ZSTD_DCtx_isOverflow(zds, neededInBuffSize, neededOutBuffSize)) in ZSTD_DCtx_updateOversizedDuration() 2130 { size_t const neededInBuffSize = MAX(zds->fParams.blockSizeMax, 4 /* frame checksum */); in ZSTD_decompressStream() local 2135 ZSTD_DCtx_updateOversizedDuration(zds, neededInBuffSize, neededOutBuffSize); in ZSTD_decompressStream() 2137 { int const tooSmall = (zds->inBuffSize < neededInBuffSize) || (zds->outBuffSize < neededOutBuffSize); in ZSTD_decompressStream() 2141 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() 2143 (U32)zds->inBuffSize, (U32)neededInBuffSize); in ZSTD_decompressStream() 2159 zds->inBuffSize = neededInBuffSize; in ZSTD_decompressStream() [all...] |