ZlibOutput.this

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

auto output = new ZlibOutput(myConduit.output);
output.write(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(OutputStream stream, Level level, Encoding encoding, int windowBits)
    class ZlibOutput
    this
  2. this(OutputStream stream, Level level)

Meta