예제 #1
0
 public DataRecord(TpsRecord tpsRecord, TableDefinitionRecord tableDefinition)
 {
     Record          = tpsRecord ?? throw new ArgumentNullException(nameof(tpsRecord));
     TableDefinition = tableDefinition ?? throw new ArgumentNullException(nameof(tableDefinition));
     Header          = (DataHeader)Record.Header;
     Values          = TableDefinition.Parse(tpsRecord.Data.GetRemainder());
 }
예제 #2
0
        public TableNameRecord(TpsRecord record)
        {
            if (record == null)
            {
                throw new ArgumentNullException(nameof(record));
            }

            Header      = (TableNameHeader)record.Header;
            TableNumber = record.Data.LongBE();
        }
예제 #3
0
        public IndexRecord(TpsRecord tpsRecord)
        {
            if (tpsRecord == null)
            {
                throw new ArgumentNullException(nameof(tpsRecord));
            }

            Header = (IndexHeader)tpsRecord.Header;

            var data = tpsRecord.Data;

            data.JumpAbsolute(data.Length - 4);

            RecordNumber = data.LongBE();
        }