transfer file from one zip to another, WIP (z64 broken)
This commit is contained in:
parent
8157325a02
commit
26b18bab76
4 changed files with 19 additions and 4 deletions
|
|
@ -37,7 +37,13 @@ impl Serializable for LocalFileHeader {
|
|||
self.compressed_size.serialize(output)?;
|
||||
self.uncompressed_size.serialize(output)?;
|
||||
(self.file_name.len() as u16).serialize(output)?;
|
||||
(self.extra_field.len() as u16).serialize(output)?;
|
||||
(self
|
||||
.extra_field
|
||||
.iter()
|
||||
.map(|f| f.size() as u16)
|
||||
.sum::<u16>()
|
||||
+ self.malformed_extra_field.len() as u16)
|
||||
.serialize(output)?;
|
||||
for c in &self.file_name {
|
||||
c.serialize(output)?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue