added iOS source code
[wl-app.git] / iOS / Pods / SSZipArchive / SSZipArchive / SSZipCommon.h
1 #ifndef SSZipCommon
2 #define SSZipCommon
3
4 /* unz_global_info structure contain global data about the ZIPfile
5  These data comes from the end of central dir */
6 typedef struct unz_global_info64_s
7 {
8     uint64_t number_entry;          /* total number of entries in the central dir on this disk */
9     uint32_t number_disk_with_CD;   /* number the the disk with central dir, used for spanning ZIP*/
10     uint16_t size_comment;          /* size of the global comment of the zipfile */
11 } unz_global_info64;
12
13 typedef struct unz_global_info_s
14 {
15     uint32_t number_entry;          /* total number of entries in the central dir on this disk */
16     uint32_t number_disk_with_CD;   /* number the the disk with central dir, used for spanning ZIP*/
17     uint16_t size_comment;          /* size of the global comment of the zipfile */
18 } unz_global_info;
19
20 /* unz_file_info contain information about a file in the zipfile */
21 typedef struct unz_file_info64_s
22 {
23     uint16_t version;               /* version made by                 2 bytes */
24     uint16_t version_needed;        /* version needed to extract       2 bytes */
25     uint16_t flag;                  /* general purpose bit flag        2 bytes */
26     uint16_t compression_method;    /* compression method              2 bytes */
27     uint32_t dos_date;              /* last mod file date in Dos fmt   4 bytes */
28     uint32_t crc;                   /* crc-32                          4 bytes */
29     uint64_t compressed_size;       /* compressed size                 8 bytes */
30     uint64_t uncompressed_size;     /* uncompressed size               8 bytes */
31     uint16_t size_filename;         /* filename length                 2 bytes */
32     uint16_t size_file_extra;       /* extra field length              2 bytes */
33     uint16_t size_file_comment;     /* file comment length             2 bytes */
34     
35     uint32_t disk_num_start;        /* disk number start               4 bytes */
36     uint16_t internal_fa;           /* internal file attributes        2 bytes */
37     uint32_t external_fa;           /* external file attributes        4 bytes */
38     
39     uint64_t disk_offset;
40     
41     uint16_t size_file_extra_internal;
42 } unz_file_info64;
43
44 typedef struct unz_file_info_s
45 {
46     uint16_t version;               /* version made by                 2 bytes */
47     uint16_t version_needed;        /* version needed to extract       2 bytes */
48     uint16_t flag;                  /* general purpose bit flag        2 bytes */
49     uint16_t compression_method;    /* compression method              2 bytes */
50     uint32_t dos_date;              /* last mod file date in Dos fmt   4 bytes */
51     uint32_t crc;                   /* crc-32                          4 bytes */
52     uint32_t compressed_size;       /* compressed size                 4 bytes */
53     uint32_t uncompressed_size;     /* uncompressed size               4 bytes */
54     uint16_t size_filename;         /* filename length                 2 bytes */
55     uint16_t size_file_extra;       /* extra field length              2 bytes */
56     uint16_t size_file_comment;     /* file comment length             2 bytes */
57     
58     uint16_t disk_num_start;        /* disk number start               2 bytes */
59     uint16_t internal_fa;           /* internal file attributes        2 bytes */
60     uint32_t external_fa;           /* external file attributes        4 bytes */
61     
62     uint64_t disk_offset;
63 } unz_file_info;
64
65 #endif