1 // FileInfo.cs created with MonoDevelop
2 // User: alan at 14:47 13/10/2008
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
8 using System.Runtime.InteropServices;
12 [StructLayout (LayoutKind.Sequential)]
13 struct UnzipFileInfo32
15 public uint version; /* version made by 2 bytes */
16 public uint version_needed; /* version needed to extract 2 bytes */
17 public uint flag; /* general purpose bit flag 2 bytes */
18 public uint compression_method; /* compression method 2 bytes */
19 public uint dosDate; /* last mod file date in Dos fmt 4 bytes */
20 public uint crc; /* crc-32 4 bytes */
21 public uint compressed_size; /* compressed size 4 bytes */
22 public uint uncompressed_size; /* uncompressed size 4 bytes */
23 public uint size_filename; /* filename length 2 bytes */
24 public uint size_file_extra; /* extra field length 2 bytes */
25 public uint size_file_comment; /* file comment length 2 bytes */
27 public uint disk_num_start; /* disk number start 2 bytes */
28 public uint internal_fa; /* internal file attributes 2 bytes */
29 public uint external_fa; /* external file attributes 4 bytes */
34 [StructLayout (LayoutKind.Sequential)]
35 struct UnzipFileInfo64
37 public ulong version; /* version made by 2 bytes */
38 public ulong version_needed; /* version needed to extract 2 bytes */
39 public ulong flag; /* general purpose bit flag 2 bytes */
40 public ulong compression_method; /* compression method 2 bytes */
41 public ulong dosDate; /* last mod file date in Dos fmt 4 bytes */
42 public ulong crc; /* crc-32 4 bytes */
43 public ulong compressed_size; /* compressed size 4 bytes */
44 public ulong uncompressed_size; /* uncompressed size 4 bytes */
45 public ulong size_filename; /* filename length 2 bytes */
46 public ulong size_file_extra; /* extra field length 2 bytes */
47 public ulong size_file_comment; /* file comment length 2 bytes */
49 public ulong disk_num_start; /* disk number start 2 bytes */
50 public ulong internal_fa; /* internal file attributes 2 bytes */
51 public ulong external_fa; /* external file attributes 4 bytes */