]> git.proxmox.com Git - rustc.git/blob - vendor/snap/src/raw.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / vendor / snap / src / raw.rs
1 /*!
2 This module provides a raw Snappy encoder and decoder.
3
4 A raw Snappy encoder/decoder can only compress/decompress a fixed amount of
5 data at a time. For this reason, this module is lower level and more difficult
6 to use than the higher level streaming readers and writers exposed as part of
7 the [`read`](../read/index.html) and [`write`](../write/index.html) modules.
8
9 Generally, one only needs to use the raw format if some other source is
10 generating raw Snappy compressed data and you have no choice but to do the
11 same. Otherwise, the Snappy frame format should probably always be preferred.
12 */
13 pub use crate::compress::{max_compress_len, Encoder};
14 pub use crate::decompress::{decompress_len, Decoder};