Inflater Class

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

Inflater Class

Inflater is used to decompress data that has been compressed according to the "deflate" standard described in rfc1951. By default Zlib (rfc1950) headers and footers are expected in the input. You can use constructor

public Inflater(bool noHeader)
passing true if there is no Zlib header information The usage is as following. First you have to set some input with
SetInput()
, then Inflate() it. If inflate doesn't inflate any bytes there may be three reasons:
  • IsNeedingInput() returns true because the input buffer is empty. You have to provide more input with
    SetInput()
    . NOTE: IsNeedingInput() also returns true when, the stream is finished.
  • IsNeedingDictionary() returns true, you have to provide a preset dictionary with
    SetDictionary()
    .
  • IsFinished returns true, the inflater has finished.
Once the first output byte is produced, a dictionary will not be needed at a later stage. author of the original java version : John Leuner, Jochen Hoenicke

For a list of all members of this type, see Inflater Members.

System.Object    ICSharpCode.SharpZipLib.Zip.Compression.Inflater

public class Inflater

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: ICSharpCode.SharpZipLib.Zip.Compression

Assembly: ICSharpCode.SharpZipLib (in ICSharpCode.SharpZipLib.dll)

See Also

Inflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace