VirtualFileSystem._INode._INode C# (CSharp) Method

_INode() public method

初始化一个全新的 inode
public _INode ( UInt32 flags, UInt32 owner ) : System
flags System.UInt32
owner System.UInt32
return System
        public _INode(UInt32 flags, UInt32 owner)
        {
            this.sizeByte = 0;
            this.accessTime = 0;
            this.modifyTime = 0;
            this.creationTime = (UInt64)DateTime.Now.Ticks;
            this.linkCount = 0;
            this.flags = flags;
            this.owner = owner;
            this.blockPreserved = 0;
            this.dataBlockId = new UInt32[14];

            // 0xFFFFFFFF 代表未分配
            for (int i = 0; i < 14; ++i)
            {
                dataBlockId[i] = UInt32.MaxValue;
            }
        }
_INode