Majored / rs-async-zip

An asynchronous ZIP archive reading/writing crate.
MIT License
135 stars 44 forks source link

add entry header size #114

Closed startewho closed 10 months ago

startewho commented 1 year ago

when I partly download a zip file, I has know the compress format ,and I only want the compressed file part from the whole file. I can use the

file_offset+header_size

to get the file part start. also seems the #113 has the same need , so I make this pr.

I found the failed test is test_read_zip64_archive_mem

the reason is because the zip64.zip file 's Central directory structure and the Local File Header it has different value about the Extra field length

so it does not support all zip64 extra.

Shoud I maybe add the header_size on the ZipEntry ,not the StoredZipEntry ?

Majored commented 10 months ago

Merging but I'm going to be making a few minor changes afterwards - thought it easier for me to do that than go back and forth requesting changes.