Home
last modified time | relevance | path

Searched refs:inBuffSize (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c83 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx()
108 dctx->inBuffSize = 0; in ZSTD_initDCtx_internal()
1498 size_t const inBuffSize = blockSize; /* no block can be larger */ in ZSTD_estimateDStreamSize() local
1500 return ZSTD_estimateDCtxSize() + inBuffSize + outBuffSize; in ZSTD_estimateDStreamSize()
1520 …return (zds->inBuffSize + zds->outBuffSize) >= (neededInBuffSize + neededOutBuffSize) * ZSTD_WORKS… in ZSTD_DCtx_isOverflow()
1732 …{ int const tooSmall = (zds->inBuffSize < neededInBuffSize) || (zds->outBuffSize < neededOutBuff… in ZSTD_decompressStream()
1738 (U32)zds->inBuffSize, (U32)neededInBuffSize); in ZSTD_decompressStream()
1749 zds->inBuffSize = 0; in ZSTD_decompressStream()
1754 zds->inBuffSize = neededInBuffSize; in ZSTD_decompressStream()
1755 zds->outBuff = zds->inBuff + zds->inBuffSize; in ZSTD_decompressStream()
[all …]
H A Dzstd_decompress_internal.h142 size_t inBuffSize; member
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c224 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx()
257 dctx->inBuffSize = 0; in ZSTD_initDCtx_internal()
1838 size_t const inBuffSize = blockSize; /* no block can be larger */ in ZSTD_estimateDStreamSize() local
1840 return ZSTD_estimateDCtxSize() + inBuffSize + outBuffSize; in ZSTD_estimateDStreamSize()
1860 …return (zds->inBuffSize + zds->outBuffSize) >= (neededInBuffSize + neededOutBuffSize) * ZSTD_WORKS… in ZSTD_DCtx_isOverflow()
2077 …{ int const tooSmall = (zds->inBuffSize < neededInBuffSize) || (zds->outBuffSize < neededOutBuff… in ZSTD_decompressStream()
2083 (U32)zds->inBuffSize, (U32)neededInBuffSize); in ZSTD_decompressStream()
2094 zds->inBuffSize = 0; in ZSTD_decompressStream()
2099 zds->inBuffSize = neededInBuffSize; in ZSTD_decompressStream()
2100 zds->outBuff = zds->inBuff + zds->inBuffSize; in ZSTD_decompressStream()
[all …]
H A Dzstd_decompress_internal.h171 size_t inBuffSize; member
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c1197 size_t const inBuffSize = ((size_t)1 << cParams.windowLog) + blockSize; in ZSTD_estimateCStreamSize_usingCCtxParams() local
1199 size_t const streamingSize = ZSTD_cwksp_alloc_size(inBuffSize) in ZSTD_estimateCStreamSize_usingCCtxParams()
1537 zc->inBuffSize = buffInSize; in ZSTD_resetCCtx_internal()
1837 ZSTD_buffered_policy_e const zbuff = (ZSTD_buffered_policy_e)(srcCCtx->inBuffSize>0); in ZSTD_copyCCtx()
3819 assert(zcs->inBuffSize > 0); in ZSTD_compressStream_generic()
3885 if (zcs->inBuffTarget > zcs->inBuffSize) in ZSTD_compressStream_generic()
3888 (unsigned)zcs->inBuffTarget, (unsigned)zcs->inBuffSize); in ZSTD_compressStream_generic()
3890 assert(zcs->inBuffTarget <= zcs->inBuffSize); in ZSTD_compressStream_generic()
H A Dzstd_compress_internal.h265 size_t inBuffSize; member
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v04.c3357 size_t inBuffSize; member
3478 if (zbc->inBuffSize < neededInSize) { in ZBUFF_decompressContinue()
3480 zbc->inBuffSize = neededInSize; in ZBUFF_decompressContinue()
3533 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFF_decompressContinue()
H A Dzstd_v05.c3837 size_t inBuffSize; member
3943 if (zbc->inBuffSize < neededInSize) { in ZBUFFv05_decompressContinue()
3945 zbc->inBuffSize = neededInSize; in ZBUFFv05_decompressContinue()
3994 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv05_decompressContinue()
H A Dzstd_v06.c3953 size_t inBuffSize; member
4060 if (zbd->inBuffSize < blockSize) { in ZBUFFv06_decompressContinue()
4062 zbd->inBuffSize = blockSize; in ZBUFFv06_decompressContinue()
4101 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv06_decompressContinue()
H A Dzstd_v07.c4318 size_t inBuffSize; member
4444 if (zbd->inBuffSize < blockSize) { in ZBUFFv07_decompressContinue()
4446 zbd->inBuffSize = blockSize; in ZBUFFv07_decompressContinue()
4487 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv07_decompressContinue()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c1566 size_t const inBuffSize = (params->inBufferMode == ZSTD_bm_buffered) in ZSTD_estimateCStreamSize_usingCCtxParams() local
1575 &cParams, &params->ldmParams, 1, useRowMatchFinder, inBuffSize, outBuffSize, in ZSTD_estimateCStreamSize_usingCCtxParams()
1944 zc->inBuffSize = buffInSize; in ZSTD_resetCCtx_internal()
4632 …int const streaming = cctx->inBuffSize > 0 || cctx->outBuffSize > 0 || cctx->appliedParams.nbWorke… in ZSTD_CCtx_trace()
5345 assert(zcs->inBuffSize > 0); in ZSTD_compressStream_generic()
5421 if (zcs->inBuffTarget > zcs->inBuffSize) in ZSTD_compressStream_generic()
5424 (unsigned)zcs->inBuffTarget, (unsigned)zcs->inBuffSize); in ZSTD_compressStream_generic()
5426 assert(zcs->inBuffTarget <= zcs->inBuffSize); in ZSTD_compressStream_generic()
H A Dzstd_compress_internal.h400 size_t inBuffSize; member