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.
[Visual Basic]
Overloads Public Function Inflate( _
ByVal buf As Byte(), _
ByVal off As Integer, _
ByVal len As Integer _
) As Integer
[C#]
public int Inflate(
byte[] buf,
int off,
int len
);
Parameters
buf
the output buffer.
off
the offset into buffer where the output should start.
len
the maximum length of the output.
Return Value
the number of bytes written to the buffer, 0 if no further output can be produced.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentOutOfRangeException | if len is <= 0. |
System.ArgumentOutOfRangeException | if the off and/or len are wrong. |
System.FormatException | if deflated stream is invalid. |
See Also
Inflater Class | Inflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Inflater.Inflate Overload List