Function zstd::stream::copy_encode [−][src]
pub fn copy_encode<R, W>(source: R, destination: W, level: i32) -> Result<()> where
R: Read,
W: Write, Compress all data from the given source as if using an Encoder.
Compressed data will be appended to destination.
A level of 0 uses zstd’s default (currently 3).