Easy.Compression by Nima Ara

<PackageReference Include="Easy.Compression" Version="1.1.0" />

 ICompressor

public interface ICompressor : IDisposable
Specifies the contract that an instance of ICompressor must implement.
void Compress(Stream streamIn, Stream compressedOutput, CompressionLevel level = 0)

Compresses the given streamIn and copies the result to compressedOutput.

byte[] Compress(byte[] bytes, CompressionLevel level = 0)

Compresses the given bytes with the level.

byte[] Compress(string input, CompressionLevel level = 0)

Compresses the given input with the level.

void DeCompress(Stream compressedInput, Stream streamOut)

Decompresses the given compressedInput and copies the result to streamOut.

byte[] DeCompress(byte[] bytes)

DeCompresses the given bytes.

string DeCompressAsString(byte[] bytes)

DeCompresses the given bytes as String.

string DeCompressAsString(byte[] bytes, Encoding encoding)

DeCompresses the given bytes as String.