Deflates the current input block to the given array. It returns the number of bytes compressed, or 0 if either needsInput() or finished() returns true or length is zero.
[Visual Basic]
Overloads Public Function Deflate( _
ByVal output As Byte(), _
ByVal offset As Integer, _
ByVal length As Integer _
) As Integer
[C#]
public int Deflate(
byte[] output,
int offset,
int length
);
Parameters
output
the buffer where to write the compressed data.
offset
the offset into the output array.
length
the maximum number of bytes that may be written.
Exceptions
Exception Type | Condition |
---|---|
System.InvalidOperationException | if end() was called. |
System.ArgumentOutOfRangeException | if offset and/or length don't match the array length. |
See Also
Deflater Class | Deflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater.Deflate Overload List