unzip

Wrap an iopipe that contains compressed data into an iopipe containing the decompressed data. Data is not decompressed in place, so an extra buffer is created to hold it.

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

Parameters

Allocator

The allocator to use for buffering the data.

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 format of the input iopipe compressed data. Leave as default to detect from the data itself.

Return Value

Type: auto

An iopipe whose data is the decompressed ubyte version of the input stream.

Meta