Module zstd::stream [] [src]

Compress and decompress Zstd streams.

This module provide a Read/Write interface to zstd streams of arbitrary length.

They are compatible with the zstd command-line tool.

Structs

AutoFinishEncoder

A wrapper around an Encoder<W> that finishes the stream on drop.

Decoder

A decoder that decompress input data from another Read.

Encoder

An encoder that compress and forward data to another writer.

Functions

copy_decode

Decompress from the given source as if using a Decoder.

copy_encode

Compress all data from the given source as if using an Encoder.

decode_all

Decompress from the given source as if using a Decoder.

encode_all

Compress all data from the given source as if using an Encoder.