maybe_decompress

Function maybe_decompress 

Source
pub fn maybe_decompress(data: &[u8]) -> Result<Vec<u8>, Error>
Expand description

Decompress zstd data if it has the magic header, otherwise return as-is.

This is provided for consumers to use when reading from the stream.