Module zstd::stream

source ·
Expand description

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

Modules

  • Raw in-memory stream compression/decompression.
  • Implement pull-based Read trait for both compressing and decompressing.
  • Implement push-based Write trait for both compressing and decompressing.
  • Wrappers around raw operations implementing std::io::{Read, Write}.

Functions

  • Decompress from the given source as if using a Decoder.
  • Compress all data from the given source as if using an Encoder.
  • Decompress from the given source as if using a Decoder.
  • Compress all data from the given source as if using an Encoder.