Module iopipe.zip

Compression/decompression with iopipes.

Functions

NameDescription
unzip(c, format)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.
unzipSrc(c, format)Get a stream source that unzips an iopipe of ubytes. The source stream should be compressed in the appropriate format.
zip(c, format)Wrap an iopipe of ubytes into an iopipe containing the compressed data from that input. Data is not compressed in place, so an extra buffer is created to hold it.
zipSrc(c, format)Get a stream source that compresses an iopipe of ubytes with the given format.

Enums

NameDescription
CompressionFormatEnum for specifying the desired or expected compression format.