[][src]Function zstd::stream::encode_all

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

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