I am trying to find the position of the first Central Directory file header in a Zip file.
I\'m reading these: http://en.wikipedia.org/wiki/Zip_(file_format) http://www.
I ended up looping through the bytes starting from the end. The loop stops if it finds a matching byte sequence, the index is below zero or if it already went through 64k bytes.