[go: up one dir, main page]

copy_encode

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