ZlibInput.this

Constructs a new zlib decompression filter. You need to pass in the stream that the decompression filter will read from. If you are using this filter with a conduit, the idiom to use is:

auto input = new ZlibInput(myConduit.input);
input.read(myContent);

The optional windowBits parameter is the base two logarithm of the window size, and should be in the range 8-15, defaulting to 15 if not specified. Additionally, the windowBits parameter may be negative to indicate that zlib should omit the standard zlib header and trailer, with the window size being -windowBits.

  1. this(InputStream stream, Encoding encoding, int windowBits)
    class ZlibInput
    this
    (,,
    int windowBits = WINDOWBITS_DEFAULT
    )
  2. this(InputStream stream)

Parameters

stream InputStream

Compressed input stream.

encoding Encoding

Stream encoding. Defaults to Encoding.Guess, which should be sufficient unless the stream was compressed with no encoding; in this case, you must manually specify Encoding.None.

windowBits int

The base two logarithm of the window size, and should be in the range 8-15, defaulting to 15 if not specified.

Meta