Difference between revisions of "ZIM file format"

Jump to navigation Jump to search
Line 17: Line 17:
| uuid                  || integer ||  8 || 16 || unique id of this zim file
| uuid                  || integer ||  8 || 16 || unique id of this zim file
|-
|-
| count                  || integer || 24 ||  4 || total number of articles
| articleCount          || integer || 24 ||  4 || total number of articles
|-
|-
| indexPtrPos           || integer || 28 ||  8 || position of the directory pointerlist
| titlePtrPos           || integer || 28 ||  8 || position of the directory pointerlist ordered by Title
|-
| urlPtrPos              || integer || 28 ||  8 || position of the directory pointerlist orderes by URL
|-
|-
| clusterCount          || integer || 36 ||  4 || number of data clusters
| clusterCount          || integer || 36 ||  4 || number of data clusters
Line 30: Line 32:
|}
|}


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.


== Index pointer list ==
== Index pointer list ==