-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This polishes up the public API. In particular, the big change here is to demphasize the raw Decoder and Encoder types, since they are very rarely what one wants. They are now put in their own 'raw' sub-module. The top-level API now only consists of the Error type and the Result type alias. We also make sure every public API type has a std::fmt::Debug impl.
- Loading branch information
1 parent
0dd721e
commit 21d2ec4
Showing
10 changed files
with
184 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*! | ||
This module provides a raw Snappy encoder and decoder. | ||
A raw Snappy encoder/decoder can only compress/decompress a fixed amount of | ||
data at a time. For this reason, this module is lower level and more difficult | ||
to use than the higher level streaming readers and writers exposed as part of | ||
the [`read`](../read/index.html) and [`write`](../write/index.html) modules. | ||
Generally, one only needs to use the raw format if some other source is | ||
generating raw Snappy compressed data and you have no choice but to do the | ||
same. Otherwise, the Snappy frame format should probably always be preferred. | ||
*/ | ||
pub use crate::compress::{max_compress_len, Encoder}; | ||
pub use crate::decompress::{decompress_len, Decoder}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.