zipSrc

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

This is the source that zip uses to compress data.

@safe
zipSrc
(
Chain
)
if (
isIopipe!(Chain) &&
is(WindowType!Chain : const(ubyte)[])
)

Parameters

c Chain

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

format CompressionFormat

The specified format of the compressed data.

Return Value

Type: auto

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

Meta