System.StreamExtensions.UnwrapGZip C# (CSharp) Метод

UnwrapGZip() публичный статический Метод

Checks for GZip header and if found, returns decompressed Stream, otherwise original Stream
public static UnwrapGZip ( this stream ) : Stream
stream this
Результат Stream
        public static Stream UnwrapGZip(this Stream stream)
        {
            return stream.CheckGZipHeader() ? new GZipStream(stream, CompressionMode.Decompress, false) : stream;
        }