Function zstd::stream::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).