]> git.ipfire.org Git - thirdparty/zstd.git/commit
simplified ZSTD_CCtx_setParametersUsingCCtxParams()
authorYann Collet <cyan@fb.com>
Thu, 30 Nov 2017 00:13:05 +0000 (16:13 -0800)
committerYann Collet <cyan@fb.com>
Thu, 30 Nov 2017 00:13:05 +0000 (16:13 -0800)
commit998a93b784798a6cab9d4a536a207f863ea3bcf3
tree36fea3871f3b088c0bbdf2c876019933450f8219
parentb3d76e0a94502e2f484d7495c88ca3a21d44155b
simplified ZSTD_CCtx_setParametersUsingCCtxParams()

Any ZSTD_CCtx_setParameter() shall just write the requested parameter, without further action.
Any action shall be taken at parameter application only (during init).
It makes it possible to just copy CCtxParams from external container to internal state,
and get rid of the more complex code which was trying to compensate for missing actions.
lib/compress/zstd_compress.c