예제 #1
0
 public EpgEventInfo()
 {
     original_network_id = 0;
     transport_stream_id = 0;
     service_id          = 0;
     event_id            = 0;
     StartTimeFlag       = 0;
     start_time          = new DateTime();
     DurationFlag        = 0;
     durationSec         = 0;
     ShortInfo           = null;
     ExtInfo             = null;
     ContentInfo         = null;
     ComponentInfo       = null;
     AudioInfo           = null;
     EventGroupInfo      = null;
     EventRelayInfo      = null;
     FreeCAFlag          = 0;
 }
예제 #2
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref original_network_id);
            r.Read(ref transport_stream_id);
            r.Read(ref service_id);
            r.Read(ref event_id);
            r.Read(ref StartTimeFlag);
            try
            {
                r.Read(ref start_time);
            }
            catch (ArgumentOutOfRangeException)
            {
            }
            r.Read(ref DurationFlag);
            r.Read(ref durationSec);
            int size = 0;

            ShortInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                ShortInfo = new EpgShortEventInfo();
                r.Read(ref ShortInfo);
            }
            ExtInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                ExtInfo = new EpgExtendedEventInfo();
                r.Read(ref ExtInfo);
            }
            ContentInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                ContentInfo = new EpgContentInfo();
                r.Read(ref ContentInfo);
            }
            ComponentInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                ComponentInfo = new EpgComponentInfo();
                r.Read(ref ComponentInfo);
            }
            AudioInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                AudioInfo = new EpgAudioComponentInfo();
                r.Read(ref AudioInfo);
            }
            EventGroupInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                EventGroupInfo = new EpgEventGroupInfo();
                r.Read(ref EventGroupInfo);
            }
            EventRelayInfo = null;
            r.Read(ref size);
            if (size != 4)
            {
                r.Stream.Seek(-4, SeekOrigin.Current);
                EventRelayInfo = new EpgEventGroupInfo();
                r.Read(ref EventRelayInfo);
            }
            r.Read(ref FreeCAFlag);
            r.End();
        }
예제 #3
0
 public void Read(MemoryStream s, ushort version)
 {
     var r = new CtrlCmdReader(s, version);
     r.Begin();
     r.Read(ref original_network_id);
     r.Read(ref transport_stream_id);
     r.Read(ref service_id);
     r.Read(ref event_id);
     r.Read(ref StartTimeFlag);
     try
     {
         r.Read(ref start_time);
     }
     catch (ArgumentOutOfRangeException)
     {
     }
     r.Read(ref DurationFlag);
     r.Read(ref durationSec);
     int size = 0;
     ShortInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         ShortInfo = new EpgShortEventInfo();
         r.Read(ref ShortInfo);
     }
     ExtInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         ExtInfo = new EpgExtendedEventInfo();
         r.Read(ref ExtInfo);
     }
     ContentInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         ContentInfo = new EpgContentInfo();
         r.Read(ref ContentInfo);
     }
     ComponentInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         ComponentInfo = new EpgComponentInfo();
         r.Read(ref ComponentInfo);
     }
     AudioInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         AudioInfo = new EpgAudioComponentInfo();
         r.Read(ref AudioInfo);
     }
     EventGroupInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         EventGroupInfo = new EpgEventGroupInfo();
         r.Read(ref EventGroupInfo);
     }
     EventRelayInfo = null;
     r.Read(ref size);
     if (size != 4)
     {
         r.Stream.Seek(-4, SeekOrigin.Current);
         EventRelayInfo = new EpgEventGroupInfo();
         r.Read(ref EventRelayInfo);
     }
     r.Read(ref FreeCAFlag);
     r.End();
 }
예제 #4
0
 public EpgEventInfo()
 {
     original_network_id = 0;
     transport_stream_id = 0;
     service_id = 0;
     event_id = 0;
     StartTimeFlag = 0;
     start_time = new DateTime();
     DurationFlag = 0;
     durationSec = 0;
     ShortInfo = null;
     ExtInfo = null;
     ContentInfo = null;
     ComponentInfo = null;
     AudioInfo = null;
     EventGroupInfo = null;
     EventRelayInfo = null;
     FreeCAFlag = 0;
 }