You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@ -10,40 +10,36 @@ using System.Runtime.InteropServices;
|
||||
namespace zipsharp
|
||||
{
|
||||
[StructLayoutAttribute (LayoutKind.Sequential)]
|
||||
struct ZipFileInfo
|
||||
struct ZipFileInfo32
|
||||
{
|
||||
ZipTime date;
|
||||
IntPtr dosDate;
|
||||
IntPtr internalFileAttributes;
|
||||
IntPtr externalFileAttributes;
|
||||
uint dosDate;
|
||||
uint internalFileAttributes;
|
||||
uint 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)
|
||||
public ZipFileInfo32 (DateTime fileTime)
|
||||
{
|
||||
date = new ZipTime (fileTime);
|
||||
dosDate = IntPtr.Zero;
|
||||
internalFileAttributes = IntPtr.Zero;
|
||||
externalFileAttributes = IntPtr.Zero;
|
||||
dosDate = 0;
|
||||
internalFileAttributes = 0;
|
||||
externalFileAttributes = 0;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayoutAttribute (LayoutKind.Sequential)]
|
||||
struct ZipFileInfo64
|
||||
{
|
||||
ZipTime date;
|
||||
ulong dosDate;
|
||||
ulong internalFileAttributes;
|
||||
ulong externalFileAttributes;
|
||||
|
||||
public ZipFileInfo64 (DateTime fileTime)
|
||||
{
|
||||
date = new ZipTime (fileTime);
|
||||
dosDate = 0;
|
||||
internalFileAttributes = 0;
|
||||
externalFileAttributes = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user