Class Zlib
- Namespace
- Renci.SshNet.Compression
- Assembly
- Renci.SshNet.dll
Represents the "zlib" compression algorithm.
public class Zlib : Compressor, IDisposable
Inheritance
Derived
Implements
Inherited Members
Constructors
Zlib()
Initializes a new instance of the Renci.SshNet.Compression.Zlib class.
public Zlib()
Zlib(bool)
Initializes a new instance of the Renci.SshNet.Compression.Zlib class.
protected Zlib(bool delayedCompression)
Parameters
delayedCompression
bool- false to start compression after receiving SSH_MSG_NEWKEYS. true to delay compression until SSH_MSG_USERAUTH_SUCCESS is received. See https://www.openssh.com/txt/draft-miller-secsh-compression-delayed-00.txt.
Properties
Name
Gets the algorithm name.
public override string Name { get; }
Property Value
Methods
CompressCore(byte[], int, int)
Compresses the specified data.
protected override byte[] CompressCore(byte[] data, int offset, int length)
Parameters
data
byte[]-
Data to compress.
offset
int-
The zero-based byte offset in
data
at which to begin reading the data to compress. length
int-
The number of bytes to be compressed.
Returns
- byte[]
-
The compressed data.
DecompressCore(byte[], int, int)
Decompresses the specified data.
protected override byte[] DecompressCore(byte[] data, int offset, int length)
Parameters
data
byte[]-
Compressed data.
offset
int-
The zero-based byte offset in
data
at which to begin reading the data to decompress. length
int-
The number of bytes to be read from the compressed data.
Returns
- byte[]
-
The decompressed data.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)