Lines Matching defs:value

423  *          >0, `srcSize` is too small, value is wanted `srcSize` amount,
430 ZSTD_memset(zfhPtr, 0, sizeof(*zfhPtr)); /* not strictly necessary, but static analyzer do not understand that zfhPtr is only going to be read only if return value is zero, since they are 2 different signals */
509 * >0, `srcSize` is too small, value is wanted `srcSize` amount,
1680 * @return 1 if value is within dParam bounds,
1682 static int ZSTD_dParam_withinBounds(ZSTD_dParameter dParam, int value)
1686 if (value < bounds.lowerBound) return 0;
1687 if (value > bounds.upperBound) return 0;
1695 size_t ZSTD_DCtx_getParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int* value)
1699 *value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize);
1702 *value = (int)dctx->format;
1705 *value = (int)dctx->outBufferMode;
1708 *value = (int)dctx->forceIgnoreChecksum;
1711 *value = (int)dctx->refMultipleDDicts;
1718 size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter dParam, int value)
1723 if (value == 0) value = ZSTD_WINDOWLOG_LIMIT_DEFAULT;
1724 CHECK_DBOUNDS(ZSTD_d_windowLogMax, value);
1725 dctx->maxWindowSize = ((size_t)1) << value;
1728 CHECK_DBOUNDS(ZSTD_d_format, value);
1729 dctx->format = (ZSTD_format_e)value;
1732 CHECK_DBOUNDS(ZSTD_d_stableOutBuffer, value);
1733 dctx->outBufferMode = (ZSTD_bufferMode_e)value;
1736 CHECK_DBOUNDS(ZSTD_d_forceIgnoreChecksum, value);
1737 dctx->forceIgnoreChecksum = (ZSTD_forceIgnoreChecksum_e)value;
1740 CHECK_DBOUNDS(ZSTD_d_refMultipleDDicts, value);
1744 dctx->refMultipleDDicts = (ZSTD_refMultipleDDicts_e)value;