保证源大小
🌐 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, which must be a non-negative safe integer. If the size
doesn't match at the end of the input, compression will fail with the code
ZSTD_error_srcSize_wrong.