Difference between revisions of "ZIM file format"

Jump to navigation Jump to search
1 byte added ,  10:35, 16 October 2010
Line 36: Line 36:
Each article in the ZIM file has a directory entry. Since the directory entry has a variable size we have an index pointerlist which is a list of 4-byte offsets. The pointers points to the directory entries.
Each article in the ZIM file has a directory entry. Since the directory entry has a variable size we have an index pointerlist which is a list of 4-byte offsets. The pointers points to the directory entries.


== Url pointer list (urlPtrPos) ==
== URL pointer list (urlPtrPos) ==
The URL pointer list is a list of 8 byte offsets to the directory entries.
 
The directory entries are always ordered by URL. Ordering is simply done by comparing the URL strings.


The url pointer list is a list of 8 byte offsets to the directory entries.
The directory entries are always ordered by url. Ordering is simply done by comparing the url strings.
Since directory entries have variable sizes this is needed for random access.
Since directory entries have variable sizes this is needed for random access.


Navigation menu