保证源大小
¥Pledged Source Size
可以通过 opts.pledgedSrcSize
指定未压缩输入的预期总大小。如果输入末尾的大小不匹配,则压缩将失败,代码为 ZSTD_error_srcSize_wrong
。
¥It's possible to specify the expected total size of the uncompressed input via
opts.pledgedSrcSize
. If the size doesn't match at the end of the input,
compression will fail with the code ZSTD_error_srcSize_wrong
.