add struct for localheader

This commit is contained in:
Jean-Marie Mineau 2024-01-15 15:52:47 +01:00
parent bea2b9ffc0
commit 0794aac016
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 214 additions and 6 deletions

View file

@ -7,6 +7,7 @@ mod cp437;
pub mod end_of_central_directory;
pub mod extra_fields;
pub mod file_header;
pub mod local_file_header;
use apk_signing_block::*;
use end_of_central_directory::*;
@ -15,6 +16,11 @@ use file_header::FileHeader;
#[derive(Debug, Clone, PartialEq, Eq, Serializable, Default)]
pub struct Signature(pub u32);
pub enum Encoding {
CP437,
UTF8,
}
pub struct ZipFile<T: Read + Seek> {
pub end_of_central_directory: EndCentralDirectory,
pub zip64_end_of_central_directory: Option<Zip64EndCentralDirectory>,