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.
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}
.
Structs§
- A wrapper around an
Encoder<W>
that finishes the stream on drop. - A decoder that decompress input data from another
Read
. - An encoder that compress and forward data to another writer.
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
.