コード例 #1
0
        /// <summary>
        /// Returns the virtual sector table starting at
        /// </summary>
        /// <param name="offset">The offset where the table begins</param>
        /// <param name="maxSize">The maximum number of entries in the table</param>
        protected virtual int[] ReadVirtualSectorTable(int offset, int maxSize)
        {
            int[] sectorTable = new int[maxSize];

            using (BinaryReader reader = _fileSystemData.GetReader(offset, maxSize * 2))
            {
                for (int index = 0; index < maxSize; index++)
                {
                    sectorTable[index] = reader.ReadInt16();
                }
            }

            return(sectorTable);
        }