unzipSrc

Get a stream source that unzips an iopipe of ubytes. The source stream should be compressed in the appropriate format.

This is the source that unzip uses to decompress.

unzipSrc
(
Chain
)
if (
isIopipe!(Chain) &&
is(WindowType!Chain : const(ubyte)[])
)

Parameters

c Chain

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

format CompressionFormat

The specified format of the data, leave the default to autodetect.

Return Value

Type: auto

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

Meta