remozipsy 0.0.2

zip implementation independent structs and helpers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
pub(crate) struct RemoteFileInfo {
    // TODO use cd directly
    pub crc32: u32,
    pub compressed_size: u32,
    pub uncompressed_size: u32,
    pub compression_method: u16,
    pub file_name: String,
    pub start_offset: u32,

    /// calculated, its not simple `start_offset + compressed_size` because the
    /// `start_offset` points to the LocalHeader of "unknown" size.
    /// this is inclusive End!
    pub end_offset_inclusive: u64,
}