2014-08-13 10:39:27 +01:00
|
|
|
|
// ZipFileInfo.cs created with MonoDevelop
|
|
|
|
|
// User: alan at 12:14 13/10/2008
|
|
|
|
|
//
|
|
|
|
|
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
using System;
|
2016-08-03 10:59:49 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
|
|
namespace zipsharp
|
|
|
|
|
{
|
2016-08-03 10:59:49 +00:00
|
|
|
|
[StructLayoutAttribute (LayoutKind.Sequential)]
|
2017-04-10 11:41:01 +00:00
|
|
|
|
struct ZipFileInfo32
|
2014-08-13 10:39:27 +01:00
|
|
|
|
{
|
|
|
|
|
ZipTime date;
|
2017-04-10 11:41:01 +00:00
|
|
|
|
uint dosDate;
|
|
|
|
|
uint internalFileAttributes;
|
|
|
|
|
uint externalFileAttributes;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
|
public ZipFileInfo32 (DateTime fileTime)
|
2014-08-13 10:39:27 +01:00
|
|
|
|
{
|
2017-04-10 11:41:01 +00:00
|
|
|
|
date = new ZipTime (fileTime);
|
|
|
|
|
dosDate = 0;
|
|
|
|
|
internalFileAttributes = 0;
|
|
|
|
|
externalFileAttributes = 0;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
}
|
2017-04-10 11:41:01 +00:00
|
|
|
|
}
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
|
[StructLayoutAttribute (LayoutKind.Sequential)]
|
|
|
|
|
struct ZipFileInfo64
|
|
|
|
|
{
|
|
|
|
|
ZipTime date;
|
|
|
|
|
ulong dosDate;
|
|
|
|
|
ulong internalFileAttributes;
|
|
|
|
|
ulong externalFileAttributes;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
|
public ZipFileInfo64 (DateTime fileTime)
|
2014-08-13 10:39:27 +01:00
|
|
|
|
{
|
|
|
|
|
date = new ZipTime (fileTime);
|
2017-04-10 11:41:01 +00:00
|
|
|
|
dosDate = 0;
|
|
|
|
|
internalFileAttributes = 0;
|
|
|
|
|
externalFileAttributes = 0;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|