pub fn copy_encode<R: Read, W: Write>( source: R, destination: W, level: u32, ) -> Result<()>
Compress all data from the given source as if using a read::XzEncoder.
Compressed data will be appended to destination.
destination