Function zipSrc
Get a stream source that compresses an iopipe of ubytes with the given format.
auto zipSrc(Chain)
(
Chain c,
CompressionFormat format = CompressionFormat .gzip
) @safe
if (isIopipe!Chain && is(WindowType!Chain : const(ubyte)[]));
This is the source that zip
uses to compress data.
Parameters
Name | Description |
---|---|
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. |
Returns
An input stream whose read
method compresses the input iopipe data into
the given buffer.