Exemplo n.º 1
0
            //protected:
            protected override void DoLoad(ITableReader reader)
            {
                int allCount         = (int)reader.ReadLong();
                int ndxFirstDelFrame = (int)reader.ReadLong();

                if (allCount <= ndxFirstDelFrame)
                {
                    throw new CorruptedStreamException();
                }

                m_frameCount       = allCount;
                m_ndxFirstDelFrame = ndxFirstDelFrame;
            }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
0
            //protected:
            protected override void DoLoad(ITableReader reader)
            {
                int count = (int)reader.ReadLong();

                DataCount = count;
            }