예제 #1
0
        /// <summary>
        /// Read Header page from ByteReader
        /// </summary>
        private HeaderPage_v6 ReadHeaderPage(ByteReader reader)
        {
            var page = new HeaderPage_v6();

            reader.Skip(100);

            var cols = reader.ReadByte();

            for (var i = 0; i < cols; i++)
            {
                page.CollectionPages.Add(reader.ReadString(), reader.ReadUInt32());
            }

            return(page);
        }
예제 #2
0
        /// <summary>
        /// Read Header page from ByteReader
        /// </summary>
        private HeaderPage_v6 ReadHeaderPage(ByteReader reader)
        {
            var page = new HeaderPage_v6();

            reader.Skip(60); // HEADER_INFO + FILE_VERSION + ChangeID + FreeEmptyPageID + LastPageID + DbVersion + Password

            var cols = reader.ReadByte();

            for (var i = 0; i < cols; i++)
            {
                page.CollectionPages.Add(reader.ReadString(), reader.ReadUInt32());
            }

            return(page);
        }