Exemplo n.º 1
0
        private void ReadHeader(LiteDB.ByteReader reader)
        {
            // first 5 bytes (pageID + pageType) was readed before class create
            // this.PageID
            // this.PageType

            this.PrevPageID = reader.ReadUInt32();
            this.NextPageID = reader.ReadUInt32();
            this.ItemCount  = reader.ReadUInt16();
            reader.ReadUInt16(); // FreeBytes;
            reader.Skip(8);      // reserved 8 bytes
        }