Function zstd::stream::copy_encode

source ·
pub fn copy_encode<R, W>(source: R, destination: W, level: i32) -> Result<()>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).