simmotech wrote:
For reading, I just look for the local file signature to show the start of a file. The directories are always there at the end with extra info but that's not necessarily required to read the files in a streaming manner.
Now I've read a bit more about the structure of ZIP files, I am under the impression that the directory of entries is stored at the end of the stream.Zip does have a directory at the end. It has a header to show the start of a file as well as an optional signature at the end of files to know when they end and their size. When I write a zip file with the streaming write, it uses this end of file header.
How can the chaining you describe work with a forward-only stream of bytes?
For reading, I just look for the local file signature to show the start of a file. The directories are always there at the end with extra info but that's not necessarily required to read the files in a streaming manner.