fix set_pledged_src_size

This commit is contained in:
Dmitry Belyaev 2023-08-05 23:07:16 +03:00
parent a6e5931f35
commit 307790ce49

View File

@ -91,7 +91,7 @@ where
let mut zencoder = zstd::stream::raw::Encoder::new(self.compress_lvl).str_err()?; let mut zencoder = zstd::stream::raw::Encoder::new(self.compress_lvl).str_err()?;
zencoder zencoder
.set_pledged_src_size(item_data.len() as u64) .set_pledged_src_size(Some(item_data.len() as u64))
.str_err()?; .str_err()?;
self.cur_buf_raw.set_position(0); self.cur_buf_raw.set_position(0);