Function zipSrc

Get a stream source that compresses an iopipe of ubytes with the given format.

auto auto zipSrc(Chain) (
  Chain c,
  CompressionFormat format = CompressionFormat.gzip
if (isIopipe!Chain && is(WindowType!Chain : const(ubyte)[]));

This is the source that zip uses to compress data.


c The input iopipe that provides the data to compress. The window type MUST be implicitly convertable to an array of const ubytes.
format The specified format of the compressed data.


An input stream whose read method compresses the input iopipe data into the given buffer.