Inflater.Inflate Method (Byte[], Int32, Int32)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

Inflater.Inflate Method (Byte[], Int32, Int32)

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

public int Inflate(
   byte[] buffer,
   int offset,
   int count
);

Parameters

buffer
the output buffer.
offset
the offset in buffer where storing starts.
count
the maximum number of bytes to output.

Return Value

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

Exceptions

Exception Type Condition
ArgumentOutOfRangeException if count is less than 0.
ArgumentOutOfRangeException if the index and / or count are wrong.
FormatException if deflated stream is invalid.

See Also

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