pub fn decode_all<R: Read>(source: R) -> Result<Vec<u8>>Expand description
Decompress from the given source as if using a Decoder.
The input data must be in the zstd frame format.
When the frame records its decompressed size, the returned Vec is sized
for it up front. That is worth about a factor of two over letting it grow,
so prefer this to driving a Decoder into a Vec::new() yourself. If you
are decompressing into a buffer you own, decompressed_size() gives you
the same number.