Expand description
ZIP Central Directory parser.
Reads the End of Central Directory (EOCD) record — always at the tail of
the file — to locate the Central Directory, then walks each CD header to
produce a Vec<EntryLocation>.
Handles standard ZIP and ZIP64 (large ZIPs with > 65535 entries or entries > 4 GB). Multi-disk archives are rejected.
Structs§
- Entry
Location - Location of one JAR entry, derived from the Central Directory.
Functions§
- read_
central_ directory - Parse the ZIP Central Directory and return one
EntryLocationper file entry. - read_
central_ directory_ from - Parse the ZIP Central Directory from a
Read + Seeksource without loading the whole file into memory.