zstd::stream

Function encode_all

Source
pub fn encode_all<R: Read>(source: R, level: i32) -> Result<Vec<u8>>
Expand description

Compress all data from the given source as if using an Encoder.

Result will be in the zstd frame format.

A level of 0 uses zstd’s default (currently 3).