コード例 #1
0
        /// <summary>
        /// Sets the physical page index for the next logical page in the sequence.
        /// </summary>
        /// <param name="physicalPage">physical page index</param>
        /// <returns>logical page index</returns>
        public int SetLogicalPage(int physicalPage)
        {
            PageTableItem item = new PageTableItem()
            {
                IsDirty   = true,
                PageIndex = physicalPage,
            };

            this.pageTable.Add(item);
            return(this.pageTable.IndexOf(item));
        }
コード例 #2
0
ファイル: StoragePageTable.cs プロジェクト: vlung/Citicenter
        /// <summary>
        /// Sets the physical page index for the next logical page in the sequence.
        /// </summary>
        /// <param name="physicalPage">physical page index</param>
        /// <returns>logical page index</returns>
        public int SetLogicalPage(int physicalPage)
        {
            PageTableItem item = new PageTableItem()
            {
                IsDirty = true,
                PageIndex = physicalPage,
            };

            this.pageTable.Add(item);
            return this.pageTable.IndexOf(item);
        }