remozipsy 0.0.2

zip implementation independent structs and helpers
Documentation
/// Configurations for the state machine
#[derive(Debug)]
pub struct Config {
    /// We have to guess the start of the EOCD, increasing this number means we
    /// need to fetch more bytes to look for EOCD, however if it's to small we
    /// might miss it.
    pub max_eocd_size: usize,
    pub max_parallel_downloads: usize,
    /// For efficient fetching we need to assume the size of the LocalHeader,
    /// when enabled, we just calculate the size of the LocalHeader by knowledge
    /// from the CentralDirectory Only enable this setting, when you know
    /// that this assumption is always valid, otherwise, we need to fetch more
    /// data, and prob discard some of it again.
    pub assume_cd_contains_lh_content: bool,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            max_eocd_size: 50_000,
            max_parallel_downloads: 8,
            assume_cd_contains_lh_content: false,
        }
    }
}