Inheritance: PSILongSection
示例#1
0
文件: PSI.cs 项目: zhiqiang-li/CodeTV
        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);
        }
示例#2
0
文件: PSI.cs 项目: dgis/CodeTV
 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;
 }