You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| size | 24 | uint32_t | size of the header struct (108), excluding the tail padding |
25
-
|reserved| 28 |4 | reserved space, should be 0|
24
+
| size | 24 | uint32_t | size of the header structure, excluding the tail padding |
25
+
|digest | 28 |uint32_t| checksum for the range 28-511 bytes in header|
26
26
| flags | 32 | uint64_t | bits for flags* (see later for details) |
27
27
| index_offset | 40 | uint64_t | index offset |
28
-
| index_size | 48 | uint64_t | size of the index section, possibly compressed|
28
+
| index_size | 48 | uint64_t | size of the index section, possibly compressed base on flags |
29
29
| original_file_size | 56 | uint64_t | size of the orignal file before compression |
30
-
| reserved| 64 | 8 | reserved space, should be 0 |
31
-
| block_size | 72 | uint32_t | size of each compression block |
30
+
| index_crc | 64 | uint32_t | checksum value of index |
31
+
| reserved| 68 | 4 | reserved space, should be 0 |
32
+
| block_size| 72 | uint32_t | size of each compression block |
32
33
| algo | 76 | uint8_t | compression algorithm |
33
34
| level | 77 | uint8_t | compression level |
34
35
| use_dict| 78 | bool | whether use dictionary |
@@ -45,7 +46,9 @@ The format of header is described as below. All fields are little-endian.
45
46
| type | 1 | this is a data file (1) or index file (0) |
46
47
| sealed | 2 | this file is sealed (1) or not (0) |
47
48
| info_valid | 3 | information validity of the fields *after* flags (they were initially invalid (0) after creation; and readers must resort to trailer when they meet such headers) |
48
-
| reserved | 4~63 | reserved for future use; must be 0s |
49
+
| digest | 4 | the digest of this header/trailer has been recorded in the digest field |
50
+
| index_comperssion | 5 | whether the index has been compressed(1) or not(0) |
51
+
| reserved | 6~63 | reserved for future use; must be 0s |
0 commit comments