[][src]Module zstd::stream

Compress and decompress Zstd streams.

Zstd streams are the main way to compress and decompress data. They are compatible with the zstd command-line tool.

This module provides both Read and Write interfaces to compressing and decompressing.

Re-exports

pub use self::read::Decoder;
pub use self::write::AutoFinishEncoder;
pub use self::write::Encoder;

Modules

raw

Raw in-memory stream compression/decompression.

read

Implement pull-based [Read] trait for both compressing and decompressing.

write

Implement push-based [Write] trait for both compressing and decompressing.

zio

Wrappers around raw operations implementing std::io::{Read, Write}.

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.