Function zstd::stream::copy_encode

pub fn copy_encode<R, W>(
    source: R,
    destination: W,
    level: i32,
) -> Result<(), Error>
where R: Read, W: Write,
Expand description

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).