File: UnzipFileInfo.cs

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (55 lines) | stat: -rw-r--r-- 2,738 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// FileInfo.cs created with MonoDevelop
// User: alan at 14:47 13/10/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//

using System;
using System.Runtime.InteropServices;

namespace zipsharp
{
	[StructLayout (LayoutKind.Sequential)]
	struct UnzipFileInfo32
	{
		public uint version;              /* version made by                 2 bytes */
		public uint version_needed;       /* version needed to extract       2 bytes */
		public uint flag;                 /* general purpose bit flag        2 bytes */
		public uint compression_method;   /* compression method              2 bytes */
		public uint dosDate;              /* last mod file date in Dos fmt   4 bytes */
		public uint crc;                  /* crc-32                          4 bytes */
		public uint compressed_size;      /* compressed size                 4 bytes */
		public uint uncompressed_size;    /* uncompressed size               4 bytes */
		public uint size_filename;        /* filename length                 2 bytes */
		public uint size_file_extra;      /* extra field length              2 bytes */
		public uint size_file_comment;    /* file comment length             2 bytes */
	
		public uint disk_num_start;       /* disk number start               2 bytes */
		public uint internal_fa;          /* internal file attributes        2 bytes */
		public uint external_fa;          /* external file attributes        4 bytes */
	
	    ZipTime tmu_date;
	}

	[StructLayout (LayoutKind.Sequential)]
	struct UnzipFileInfo64
	{
		public ulong version;              /* version made by                 2 bytes */
		public ulong version_needed;       /* version needed to extract       2 bytes */
		public ulong flag;                 /* general purpose bit flag        2 bytes */
		public ulong compression_method;   /* compression method              2 bytes */
		public ulong dosDate;              /* last mod file date in Dos fmt   4 bytes */
		public ulong crc;                  /* crc-32                          4 bytes */
		public ulong compressed_size;      /* compressed size                 4 bytes */
		public ulong uncompressed_size;    /* uncompressed size               4 bytes */
		public ulong size_filename;        /* filename length                 2 bytes */
		public ulong size_file_extra;      /* extra field length              2 bytes */
		public ulong size_file_comment;    /* file comment length             2 bytes */

		public ulong disk_num_start;       /* disk number start               2 bytes */
		public ulong internal_fa;          /* internal file attributes        2 bytes */
		public ulong external_fa;          /* external file attributes        4 bytes */

		ZipTime tmu_date;
	}
}