Function 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.

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

Parameters

NameDescription
Allocator The allocator to use for buffering the data.
c The input iopipe that provides the compressed data. The window type MUST be implicitly convertable to an array of const ubytes.
format The format of the input iopipe compressed data. Leave as default to detect from the data itself.

Returns

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