pub struct LocalFileHeader {
pub signature: u32,
pub version_needed: u16,
pub general_flag: u16,
pub compression_method: u16,
pub last_mod_time: u16,
pub last_mod_date: u16,
pub crc32: u32,
pub compressed_size: u32,
pub uncompressed_size: u32,
pub filename_len: u16,
pub extra_len: u16,
}Expand description
Local file header structure (before variable-length fields)
| Offset | Size | Description |
|---|---|---|
| 0 | 4 | Signature (0x04034b50) |
| 4 | 2 | Version needed to extract |
| 6 | 2 | General purpose bit flag |
| 8 | 2 | Compression method |
| 10 | 2 | Last mod file time |
| 12 | 2 | Last mod file date |
| 14 | 4 | CRC-32 |
| 18 | 4 | Compressed size |
| 22 | 4 | Uncompressed size |
| 26 | 2 | Filename length |
| 28 | 2 | Extra field length |
| 30 | n | Filename |
| 30+n | m | Extra field |
Fields§
§signature: u32§version_needed: u16§general_flag: u16§compression_method: u16§last_mod_time: u16§last_mod_date: u16§crc32: u32§compressed_size: u32§uncompressed_size: u32§filename_len: u16§extra_len: u16Implementations§
Trait Implementations§
Source§impl Clone for LocalFileHeader
impl Clone for LocalFileHeader
Source§fn clone(&self) -> LocalFileHeader
fn clone(&self) -> LocalFileHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalFileHeader
impl Debug for LocalFileHeader
impl Copy for LocalFileHeader
Auto Trait Implementations§
impl Freeze for LocalFileHeader
impl RefUnwindSafe for LocalFileHeader
impl Send for LocalFileHeader
impl Sync for LocalFileHeader
impl Unpin for LocalFileHeader
impl UnsafeUnpin for LocalFileHeader
impl UnwindSafe for LocalFileHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more