Difference between revisions of "ZIM file format"
Jump to navigation
Jump to search
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) == | ||
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. | ||