C# Class Renci.SshNet.Compression.Compressor

Represents base class for compression algorithm implementation
Inheritance: Renci.SshNet.Security.Algorithm, IDisposable
ファイルを表示 Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
Compress ( byte data ) : byte[]

Compresses the specified data.

Compress ( byte data, int offset, int length ) : byte[]

Compresses the specified data.

Decompress ( byte data ) : byte[]

Decompresses the specified data.

Decompress ( byte data, int offset, int length ) : byte[]

Decompresses the specified data.

Dispose ( ) : void

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

Init ( Session session ) : void

Initializes the algorithm

Protected Methods

Method Description
Compressor ( ) : Renci.SshNet.Security

Initializes a new instance of the Compressor class.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Compress() public method

Compresses the specified data.
public Compress ( byte data ) : byte[]
data byte Data to compress.
return byte[]

Compress() public method

Compresses the specified data.
public Compress ( byte data, int offset, int length ) : byte[]
data byte Data to compress.
offset int The zero-based byte offset in at which to begin reading the data to compress.
length int The number of bytes to be compressed.
return byte[]

Compressor() protected method

Initializes a new instance of the Compressor class.
protected Compressor ( ) : Renci.SshNet.Security
return Renci.SshNet.Security

Decompress() public method

Decompresses the specified data.
public Decompress ( byte data ) : byte[]
data byte Compressed data.
return byte[]

Decompress() public method

Decompresses the specified data.
public Decompress ( byte data, int offset, int length ) : byte[]
data byte Compressed data.
offset int The zero-based byte offset in at which to begin reading the data to decompress.
length int The number of bytes to be read from the compressed data.
return byte[]

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Init() public method

Initializes the algorithm
public Init ( Session session ) : void
session Session The session.
return void