add struct for localheader
This commit is contained in:
parent
bea2b9ffc0
commit
0794aac016
3 changed files with 214 additions and 6 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue