StructsΒ§
- Entry
- One entry as the central directory describes it, which is the authority: a streaming archiver leaves the local headerβs sizes zero.
ConstantsΒ§
- DIRECTORY_
ENTRY_ πLENGTH - END_
OF_ πDIRECTORY_ LENGTH - SIGNATURE_
DIRECTORY_ πENTRY - SIGNATURE_
END_ πOF_ DIRECTORY - SIGNATURE_
LOCAL_ HEADER - ZIP64_
COUNT π - Zip64 saturates the 16-bit count field.
- ZIP64_
FIELD π - Zip64 saturates the 32-bit size and offset fields.
FunctionsΒ§
- find_
end_ πof_ directory - Scans back over the longest comment a 16-bit length allows, since the end-of-directory record is the only fixed point in a zip.
- keep_
last_ πof_ each_ path - A zip may list one path twice, or in two cases that NTFS treats as one; extraction leaves the last on disk, so the listing keeps the last too.
- read
- Every entry, refusing the whole archive when any name would leave the target.
- read_
entry π - The entry at
at, and where the next one starts. - u16_at
- u32_at