public TableDefinitionRecord(TPSRecord record)
        {
            RandomAccess ra = new RandomAccess();

            ra.OpenStream(new System.IO.MemoryStream(record.RecordData));
            _tableID = ra.beLong();
            ra.leByte();             //TPSRecord Type
            _blockID = ra.leShort();
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="record"></param>
        /// <param name="tableSchema"></param>
        public TableDataRecord(TPSRecord record, TableSchema tableSchema)
        {
            RandomAccess ra = new RandomAccess();

            ra.OpenStream(new System.IO.MemoryStream(record.RecordData));
            _tableID = ra.beLong();
            ra.leByte();             //TPSRecord Type
            _recordID = ra.beLong();

            _dataRow = tableSchema.parseRow(_recordID, ref ra);

            ra = null;
        }
예제 #3
0
        public TableIndexRecord(TPSRecord record)
        {
            RandomAccess ra = new RandomAccess();

            ra.OpenStream(new System.IO.MemoryStream(record.RecordData));

            _tableID = ra.beLong();
            _indexID = ra.leByte();

            ra.jumpAbs(ra.fileSize - 4);
            _recordID = ra.beLong();

            ra = null;
        }