Пример #1
0
        public void Load(ITableReader reader)
        {
            Debug.Assert(reader != null);

            foreach (byte b in Signature)
            {
                if (reader.ReadByte() != b)
                {
                    throw new CorruptedStreamException();
                }
            }

            DataPosition = reader.ReadLong();
            TableVersion = reader.ReadUInt();
            DateTime creation = reader.ReadTime();
            DateTime access   = reader.ReadTime();
            DateTime write    = reader.ReadTime();
            uint     nextId   = reader.ReadUInt();

            DoLoad(reader);

            LastWriteTime  = write;
            LastAccessTime = access;
            CreationTime   = creation;
            m_nextId       = nextId;

            IsDirty = false;
        }