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.
Encoder
Result will be in the zstd frame format.
A level of 0 uses zstd’s default (currently 3).
0
3