CarotDav_decompile/Rei.Com/FileDescriptor.cs

43 lines
1.2 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Rei.Com.FileDescriptor
// Assembly: Rei.Com, Version=1.13.2.9255, Culture=neutral, PublicKeyToken=null
// MVID: 608BC623-FF3D-4118-BA82-AC691A688790
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Com.dll
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Rei.Com
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct FileDescriptor
{
public FDFlags dwFlags;
public Guid clsid;
public SIZEL sizel;
public POINTL pointl;
public FileAttributes dwFileAttributes;
public long ftCreationTime;
public long ftLastAccessTime;
public long ftLastWriteTime;
public uint nFileSizeHigh;
public uint nFileSizeLow;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
public string cFileName;
public ulong FileSize
{
get
{
return checked (4294967296UL * (ulong) this.nFileSizeHigh + (ulong) this.nFileSizeLow);
}
set
{
this.nFileSizeHigh = checked ((uint) (value >> 32));
this.nFileSizeLow = checked ((uint) (unchecked ((long) value) & (long) uint.MaxValue));
}
}
}
}