public Nfs3FileAttributes(Nfs3FileAttributes other) { this.type = other.GetType(); this.mode = other.GetMode(); this.nlink = other.GetNlink(); this.uid = other.GetUid(); this.gid = other.GetGid(); this.size = other.GetSize(); this.used = other.GetUsed(); this.rdev = new Nfs3FileAttributes.Specdata3(); this.fsid = other.GetFsid(); this.fileId = other.GetFileId(); this.mtime = new NfsTime(other.GetMtime()); this.atime = new NfsTime(other.GetAtime()); this.ctime = new NfsTime(other.GetCtime()); }
public static Nfs3FileAttributes Deserialize(XDR xdr) { Nfs3FileAttributes attr = new Nfs3FileAttributes(); attr.type = xdr.ReadInt(); attr.mode = xdr.ReadInt(); attr.nlink = xdr.ReadInt(); attr.uid = xdr.ReadInt(); attr.gid = xdr.ReadInt(); attr.size = xdr.ReadHyper(); attr.used = xdr.ReadHyper(); attr.rdev = new Nfs3FileAttributes.Specdata3(xdr.ReadInt(), xdr.ReadInt()); attr.fsid = xdr.ReadHyper(); attr.fileId = xdr.ReadHyper(); attr.atime = NfsTime.Deserialize(xdr); attr.mtime = NfsTime.Deserialize(xdr); attr.ctime = NfsTime.Deserialize(xdr); return(attr); }