]> git.ipfire.org Git - thirdparty/zstd.git/commit
force contentSizeFlag=0 when using ZSTD_initCStream_usingCDict()
authorYann Collet <cyan@fb.com>
Tue, 11 Apr 2017 18:59:44 +0000 (11:59 -0700)
committerYann Collet <cyan@fb.com>
Tue, 11 Apr 2017 18:59:44 +0000 (11:59 -0700)
commit4ee6b15dac055e7e653b1fbfd7f65755f42597c8
tree0cc359e59259c7b8f740b7a207c5e66dcc580026
parentab9162ebb49ff00e2df0431e3b2a9de8510604b6
force contentSizeFlag=0 when using ZSTD_initCStream_usingCDict()

because by definition srcSize is not known when using this prototype.
added relevant test

Note : this use was already working, because at a later stage
(both ZSTD_compressBegin_usingCDict() and ZSTD_copyCCtx())
pledgedSrcSize=0 is translated into "unknown", no matter the frame parameter.
This is not correct, but of little importance,
as the medium term plan is to no longer set fParams within CDict
lib/compress/zstd_compress.c
tests/zstreamtest.c