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)]
|
2014-08-13 10:39:27 +01:00
|
|
|
|
struct ZipFileInfo
|
|
|
|
|
{
|
|
|
|
|
ZipTime date;
|
|
|
|
|
IntPtr dosDate;
|
|
|
|
|
IntPtr internalFileAttributes;
|
|
|
|
|
IntPtr externalFileAttributes;
|
|
|
|
|
|
|
|
|
|
public DateTime FileTime
|
|
|
|
|
{
|
|
|
|
|
get { return date.Date; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long DosDate
|
|
|
|
|
{
|
|
|
|
|
get { return dosDate.ToInt64 (); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal long InternalFileAttributes
|
|
|
|
|
{
|
|
|
|
|
get { return internalFileAttributes.ToInt64 (); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal long ExternalFileAttributes
|
|
|
|
|
{
|
|
|
|
|
get { return externalFileAttributes.ToInt64 (); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ZipFileInfo (DateTime fileTime)
|
|
|
|
|
{
|
|
|
|
|
date = new ZipTime (fileTime);
|
2016-08-03 10:59:49 +00:00
|
|
|
|
dosDate = IntPtr.Zero;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
internalFileAttributes = IntPtr.Zero;
|
|
|
|
|
externalFileAttributes = IntPtr.Zero;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|