Inflater.Inflate Method (Byte[])

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

Inflater.Inflate Method (Byte[])

Inflates the compressed stream to the output buffer. If this returns 0, you should check, whether IsNeedingDictionary(), IsNeedingInput() or IsFinished() returns true, to determine why no further output is produced.

public int Inflate(
   byte[] buffer
);

Parameters

buffer
the output buffer.

Return Value

The number of bytes written to the buffer, 0 if no further output can be produced.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException if buffer has length 0.
FormatException if deflated stream is invalid.

See Also

Inflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Inflater.Inflate Overload List