| 1 | //! LZ4_HC compression. |
| 2 | //! |
| 3 | //! LZ4_HC: High compression variant of LZ4. |
| 4 | //! |
| 5 | //! # Decompression |
| 6 | //! The `lz4_hc` module doesn't provide decompression functionality. |
| 7 | //! Use the [`lz4`] module instead. |
| 8 | //! |
| 9 | //! [`lz4`]: ../lz4/index.html |
| 10 | |
| 11 | mod bindingrust-analyzer cargo lzzzz 2.0.0 lz4_hc/binding/; |
| 12 | mod blockrust-analyzer cargo lzzzz 2.0.0 lz4_hc/block/; |
| 13 | mod streamrust-analyzer cargo lzzzz 2.0.0 lz4_hc/stream/; |
| 14 | |
| 15 | pub use blockrust-analyzer cargo lzzzz 2.0.0 lz4_hc/block/::*; |
| 16 | pub use streamrust-analyzer cargo lzzzz 2.0.0 lz4_hc/stream/::*; |
| 17 | |
| 18 | /// Predefined compression level (3). |
| 19 | pub const CLEVEL_MINrust-analyzer cargo lzzzz 2.0.0 lz4_hc/CLEVEL_MIN.: i32 = 3; |
| 20 | |
| 21 | /// Predefined compression level (9). |
| 22 | pub const CLEVEL_DEFAULTrust-analyzer cargo lzzzz 2.0.0 lz4_hc/CLEVEL_DEFAULT.: i32 = 9; |
| 23 | |
| 24 | /// Predefined compression level (10). |
| 25 | pub const CLEVEL_OPT_MINrust-analyzer cargo lzzzz 2.0.0 lz4_hc/CLEVEL_OPT_MIN.: i32 = 10; |
| 26 | |
| 27 | /// Predefined compression level (12). |
| 28 | pub const CLEVEL_MAXrust-analyzer cargo lzzzz 2.0.0 lz4_hc/CLEVEL_MAX.: i32 = 12; |
| 29 | |
| 30 | /// Decompression speed mode flag. |
| 31 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)] |
| 32 | pub enum FavorDecSpeedrust-analyzer cargo lzzzz 2.0.0 lz4_hc/FavorDecSpeed# { |
| 33 | Disabledrust-analyzer cargo lzzzz 2.0.0 lz4_hc/FavorDecSpeed#Disabled#, |
| 34 | Enabledrust-analyzer cargo lzzzz 2.0.0 lz4_hc/FavorDecSpeed#Enabled#, |
| 35 | } |
| 36 | |
| 37 | impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for FavorDecSpeedrust-analyzer cargo lzzzz 2.0.0 lz4_hc/FavorDecSpeed# { |
| 38 | fn defaultrust-analyzer cargo lzzzz 2.0.0 lz4_hc/impl#[FavorDecSpeed][Default]default().() -> Selfrust-analyzer cargo lzzzz 2.0.0 lz4_hc/impl#[FavorDecSpeed][Default] { |
| 39 | Selfrust-analyzer cargo lzzzz 2.0.0 lz4_hc/impl#[FavorDecSpeed][Default]::Disabledrust-analyzer cargo lzzzz 2.0.0 lz4_hc/FavorDecSpeed#Disabled# |
| 40 | } |
| 41 | } |