Inheritance: PSILongSection
Beispiel #1
0
        public static PSISection ParseTable(int tableId, byte[] data)
        {
            PSISection table;

            switch ((TABLE_IDS)tableId)
            {
            case TABLE_IDS.PAT:
                table = new PSIPAT(); break;

            case TABLE_IDS.SDT_ACTUAL:
                table = new PSISDT(); break;

            case TABLE_IDS.PMT:
                table = new PSIPMT(); break;

            case TABLE_IDS.NIT_ACTUAL:
                table = new PSINIT(); break;

            default:
                table = new PSISection();
                break;
            }
            table.Parse(data);
            return(table);
        }
Beispiel #2
0
 public static PSISection ParseTable(int tableId, byte[] data)
 {
     PSISection table;
     switch ((TABLE_IDS)tableId)
     {
         case TABLE_IDS.PAT:
             table = new PSIPAT(); break;
         case TABLE_IDS.SDT_ACTUAL:
             table = new PSISDT(); break;
         case TABLE_IDS.PMT:
             table = new PSIPMT(); break;
         case TABLE_IDS.NIT_ACTUAL:
             table = new PSINIT();break;
         default:
             table = new PSISection();
             break;
     }
     table.Parse(data);
     return table;
 }