pub fn decompress<'r, B>(
    data: B
) -> Result<(ReadBuffer<'r>, Option<FileType>), EtError> where
    B: TryInto<ReadBuffer<'r>>,
    EtError: From<<B as TryInto<ReadBuffer<'r>>>::Error>, 
Expand description

Decompress the contents of a ReadBuffer into a new ReadBuffer and return the type of compression.

Errors

If reading fails or if the stream can’t be decompressed, return EtError.