BzipOutput.this

Constructs a new bzip2 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 BzipOutput(myConduit.output);
output.write(myContent);

blockSize relates to the size of the window bzip2 uses when compressing data and determines how much memory is required to decompress a stream. It is measured in hundreds of kilobytes.

ccording to the bzip2 documentation, there is no dramatic difference between the various block sizes, so the default should suffice in most cases.

BlockSize.Normal (the default) is the same as BlockSize.Best (or 9). The blockSize may be any integer between 1 and 9 inclusive.

class BzipOutput
this

Meta