Deflater.SetInput Method (Byte[], Int32, Int32)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

Deflater.SetInput Method (Byte[], Int32, Int32)

Sets the data which should be compressed next. This should be only called when needsInput indicates that more input is needed. The given byte array should not be changed, before needsInput() returns true again.

public void SetInput(
   byte[] input,
   int offset,
   int count
);

Parameters

input
the buffer containing the input data.
offset
the start of the data.
count
the number of data bytes of input.

Exceptions

Exception Type Condition
InvalidOperationException if the buffer was Finish()ed or if previous input is still pending.

See Also

Deflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater.SetInput Overload List