Inflater Class

SharpZip Compression Library

SharpZip Compression 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:
  • needsInput() returns true because the input buffer is empty. You have to provide more input with
    setInput()
    . NOTE: needsInput() also returns true when, the stream is finished.
  • needsDictionary() returns true, you have to provide a preset dictionary with
    setDictionary()
    .
  • finished() 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