Lines Matching +full:zlib +full:- +full:level
1 //! A DEFLATE-based stream compression/decompression library
4 //! DEFLATE-based streams:
7 //! * the zlib format
19 //! * `default`, or `rust_backend` - this implementation uses the `miniz_oxide`
23 //! * `zlib` - this feature will enable linking against the `libz` library, typically found on most
29 //! compiler at build time. `zlib-ng-compat` is useful if you're using zlib for compatibility but
30 //! want performance via zlib-ng's zlib-compat mode. `zlib` is useful if something else in your
31 //! dependencies links the original zlib so you cannot use zlib-ng-compat. The compression ratios
53 //! # fn run() -> io::Result<()> {
61 //! Other various types are provided at the top-level of the crate for
71 //! [read]: https://doc.rust-lang.org/std/io/trait.Read.html
72 //! [write]: https://doc.rust-lang.org/std/io/trait.Write.html
73 //! [bufread]: https://doc.rust-lang.org/std/io/trait.BufRead.html
93 mod zlib; module
98 /// [`Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
105 pub use crate::zlib::read::ZlibDecoder;
106 pub use crate::zlib::read::ZlibEncoder;
112 /// [`Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
118 pub use crate::zlib::write::ZlibDecoder;
119 pub use crate::zlib::write::ZlibEncoder;
125 /// [`BufRead`]: https://doc.rust-lang.org/std/io/trait.BufRead.html
132 pub use crate::zlib::bufread::ZlibDecoder;
133 pub use crate::zlib::bufread::ZlibEncoder;
154 /// When compressing data, the compression level can be specified by a value in
160 /// Creates a new description of the compression level with an explicitly
163 /// The integer here is typically on a scale of 0-9 where 0 means "no
165 pub const fn new(level: u32) -> Compression { in new()
166 Compression(level) in new()
171 pub const fn none() -> Compression { in none()
176 pub const fn fast() -> Compression { in fast()
181 pub const fn best() -> Compression { in best()
185 /// Returns an integer representing the compression level, typically on a
186 /// scale of 0-9
187 pub fn level(&self) -> u32 { in level() method
193 fn default() -> Compression { in default()
199 fn random_bytes() -> impl Iterator<Item = u8> { in random_bytes()