<PackageReference Include="SSH.NET" Version="2014.4.6-beta1" />

Compressor

public abstract class Compressor : Algorithm, IDisposable
Represents base class for compression algorithm implementation
protected bool IsActive { get; protected set; }

Gets or sets a value indicating whether compression is active.

protected Session Session { get; }

Gets the session.

public Compressor()

Initializes a new instance of the Compressor class.

public virtual byte[] Compress(byte[] data)

Compresses the specified data.

public virtual byte[] Decompress(byte[] data)

Decompresses the specified data.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources

public virtual void Init(Session session)

Initializes the algorithm