cc68a136 |
1 | \r |
2 | \r |
3 | class Unzip\r |
4 | {\r |
5 | public:\r |
6 | Unzip();\r |
7 | FILE *file; // Zip file current open\r |
8 | unsigned char head[0x1e]; // Zip entry header\r |
9 | int dataLen; // Zip entry dest (uncompressed) size\r |
10 | \r |
11 | char *name; // Name of entry\r |
12 | \r |
13 | int gotoFirstFile();\r |
14 | int fileOpen();\r |
15 | int fileClose();\r |
16 | int fileDecode(unsigned char *data);\r |
17 | \r |
18 | private:\r |
19 | int srcLen; // Zip entry source (compressed) size\r |
20 | int nameLen,extraLen; // Length of name field and extra fields\r |
21 | int headerPos; // Position of file entry header (PK... etc)\r |
22 | int compPos; // Position of compressed data\r |
23 | };\r |