C# Class Renci.SshNet.Compression.Compressor

Represents base class for compression algorithm implementation
Inheritance: Renci.SshNet.Security.Algorithm, IDisposable
Afficher le fichier Open project: sshnet/SSH.NET Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

Compress() public méthode

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.
Résultat byte[]

Compressor() protected méthode

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

Decompress() public méthode

Decompresses the specified data.
public Decompress ( byte data ) : byte[]
data byte Compressed data.
Résultat byte[]

Decompress() public méthode

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.
Résultat byte[]

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

Init() public méthode

Initializes the algorithm
public Init ( Session session ) : void
session Session The session.
Résultat void