Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / WindowsBase / ZipSharp / ZipFileInfo.cs
1 // ZipFileInfo.cs created with MonoDevelop
2 // User: alan at 12:14 13/10/2008
3 //
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
5 //
6
7 using System;
8 using System.Runtime.InteropServices;
9
10 namespace zipsharp
11 {
12         [StructLayoutAttribute (LayoutKind.Sequential)]
13         struct ZipFileInfo32
14         {
15                 ZipTime date;
16                 uint dosDate;
17                 uint internalFileAttributes;
18                 uint externalFileAttributes;
19
20                 public ZipFileInfo32 (DateTime fileTime)
21                 {
22                         date = new ZipTime (fileTime);
23                         dosDate = 0;
24                         internalFileAttributes = 0;
25                         externalFileAttributes = 0;
26                 }
27         }
28
29         [StructLayoutAttribute (LayoutKind.Sequential)]
30         struct ZipFileInfo64
31         {
32                 ZipTime date;
33                 ulong dosDate;
34                 ulong internalFileAttributes;
35                 ulong externalFileAttributes;
36
37                 public ZipFileInfo64 (DateTime fileTime)
38                 {
39                         date = new ZipTime (fileTime);
40                         dosDate = 0;
41                         internalFileAttributes = 0;
42                         externalFileAttributes = 0;
43                 }
44         }
45 }