add async feature #1

Merged
b4tman merged 62 commits from async into master 2023-08-18 06:29:46 +00:00
Showing only changes of commit 307790ce49 - Show all commits

View File

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