/// <summary> /// Decompresses the source stream using the specified <paramref name="compressionType"/> algorithm. /// </summary> /// <param name="source">The source stream to decompress.</param> /// <param name="compressionType">The compression algorithm to use for the decompression.</param> /// <param name="bufferSize">The size of the buffer. This value must be greater than zero. The default size is 2048.</param> /// <returns>A decompressed <see cref="System.IO.Stream"/> of the <paramref name="source"/>.</returns> public static Stream DecompressStream(Stream source, CompressionType compressionType, int bufferSize) { return(CompressionUtility.DecompressStream(source, compressionType, bufferSize)); }
/// <summary> /// Decompresses the source stream using the specified <paramref name="compressionType"/> algorithm. /// </summary> /// <param name="source">The source stream to decompress.</param> /// <param name="compressionType">The compression algorithm to use for the decompression.</param> /// <returns>A decompressed <see cref="System.IO.Stream"/> of the <paramref name="source"/>.</returns> public static Stream Decompress(this Stream source, CompressionType compressionType) { return(CompressionUtility.DecompressStream(source, compressionType)); }