예제 #1
0
		public void Assign(UVFileStat stat)
		{
			stat.DeviceID = dev;
			stat.Node = ino;
			stat.Mode = mode;
			stat.LinkCount = nlink;
			stat.UID = uid;
			stat.GID = gid;
			stat.RDeviceID = rdev;
			stat.Size = size;
			stat.BlockSize = blksize;
			stat.BlockCount = blkcnt;
			stat.AccessTime = atime;
			stat.ModificationTime = mtime;
			stat.StatusChangeTime = ctime;
		}
예제 #2
0
		unsafe public static UVFileStat Convert(IntPtr ptr)
		{
			UVFileStat stat = new UVFileStat();
			((lin_stat *)ptr)->Assign(stat);
			return stat;
		}