C# Класс Renci.SshNet.Compression.Compressor

Represents base class for compression algorithm implementation
Наследование: Renci.SshNet.Security.Algorithm, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Compressor ( ) : Renci.SshNet.Security

Initializes a new instance of the Compressor class.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Описание методов

Compress() публичный Метод

Compresses the specified data.
public Compress ( byte data ) : byte[]
data byte Data to compress.
Результат byte[]

Compress() публичный Метод

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.
Результат byte[]

Compressor() защищенный Метод

Initializes a new instance of the Compressor class.
protected Compressor ( ) : Renci.SshNet.Security
Результат Renci.SshNet.Security

Decompress() публичный Метод

Decompresses the specified data.
public Decompress ( byte data ) : byte[]
data byte Compressed data.
Результат byte[]

Decompress() публичный Метод

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.
Результат byte[]

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

Init() публичный Метод

Initializes the algorithm
public Init ( Session session ) : void
session Session The session.
Результат void