예제 #1
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref ctrlID);
            r.Read(ref filePath);
            r.End();
        }
예제 #2
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref bonDriver);
            r.Read(ref chInfo);
            r.End();
        }
예제 #3
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref event_name);
            r.Read(ref text_char);
            r.End();
        }
예제 #4
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref group_type);
            r.Read(ref eventDataList);
            r.End();
        }
예제 #5
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref serviceInfo);
            r.Read(ref eventList);
            r.End();
        }
예제 #6
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref keyList);
            r.Read(ref enumStart);
            r.Read(ref enumEnd);
            r.End();
        }
예제 #7
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref tunerID);
            r.Read(ref tunerName);
            r.Read(ref reserveList);
            r.End();
        }
예제 #8
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref stream_content);
            r.Read(ref component_type);
            r.Read(ref component_tag);
            r.Read(ref text_char);
            r.End();
        }
예제 #9
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref content_nibble_level_1);
            r.Read(ref content_nibble_level_2);
            r.Read(ref user_nibble_1);
            r.Read(ref user_nibble_2);
            r.End();
        }
예제 #10
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.End();
        }
예제 #11
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref RecFolder);
            r.Read(ref WritePlugIn);
            r.Read(ref RecNamePlugIn);
            r.Read(ref RecFileName);
            r.End();
        }
예제 #12
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref dataID);
            r.Read(ref searchInfo);
            r.Read(ref recSetting);
            if (version >= 5)
            {
                r.Read(ref addCount);
            }
            r.End();
        }
예제 #13
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref stream_content);
            r.Read(ref component_type);
            r.Read(ref component_tag);
            r.Read(ref stream_type);
            r.Read(ref simulcast_group_tag);
            r.Read(ref ES_multi_lingual_flag);
            r.Read(ref main_component_flag);
            r.Read(ref quality_indicator);
            r.Read(ref sampling_rate);
            r.Read(ref text_char);
            r.End();
        }
예제 #14
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref dataID);
            r.Read(ref dayOfWeekFlag);
            r.Read(ref startTime);
            r.Read(ref durationSecond);
            r.Read(ref title);
            r.Read(ref stationName);
            r.Read(ref originalNetworkID);
            r.Read(ref transportStreamID);
            r.Read(ref serviceID);
            r.Read(ref recSetting);
            r.End();
        }
예제 #15
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref ONID);
            r.Read(ref TSID);
            r.Read(ref SID);
            r.Read(ref service_type);
            r.Read(ref partialReceptionFlag);
            r.Read(ref service_provider_name);
            r.Read(ref service_name);
            r.Read(ref network_name);
            r.Read(ref ts_name);
            r.Read(ref remote_control_key_id);
            r.End();
        }
예제 #16
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref componentList);
            r.End();
        }
예제 #17
0
        private ErrCode ReceiveCmdData2(CtrlCmd param, ref object val)
        {
            var w = new CtrlCmdWriter(new MemoryStream(), CMD_VER);

            w.Write(CMD_VER);
            MemoryStream res = null;
            ErrCode      ret = SendCmdStream(param, w.Stream, ref res);

            if (ret == ErrCode.CMD_SUCCESS)
            {
                var    r       = new CtrlCmdReader(res);
                ushort version = 0;
                r.Read(ref version);
                r.Version = version;
                r.Read(ref val);
            }
            return(ret);
        }
예제 #18
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref enableMode);
            r.Read(ref ctrlID);
            r.Read(ref serverIP);
            r.Read(ref serverPort);
            r.Read(ref filePath);
            r.Read(ref udpSend);
            r.Read(ref tcpSend);
            r.Read(ref timeShiftMode);
            r.End();
        }
예제 #19
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref notifyID);
            r.Read(ref time);
            r.Read(ref param1);
            r.Read(ref param2);
            r.Read(ref param3);
            r.Read(ref param4);
            r.Read(ref param5);
            r.Read(ref param6);
            r.End();
        }
예제 #20
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref useSID);
            r.Read(ref ONID);
            r.Read(ref TSID);
            r.Read(ref SID);
            r.Read(ref useBonCh);
            r.Read(ref space);
            r.Read(ref ch);
            r.End();
        }
예제 #21
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref startDayOfWeek);
            r.Read(ref startHour);
            r.Read(ref startMin);
            r.Read(ref endDayOfWeek);
            r.Read(ref endHour);
            r.Read(ref endMin);
            r.End();
        }
예제 #22
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.Stream.Seek(1 + 16 + 1 + 4, SeekOrigin.Current);
            for (int i = 0; i < 7; i++)
            {
                int size = 0;
                r.Read(ref size);
                r.Stream.Seek(Math.Max(size - 4, 0), SeekOrigin.Current);
            }
            byte ignoreByte = 0;

            r.Read(ref ignoreByte);
            r.End();
        }
예제 #23
0
파일: CtrlCmdDef.cs 프로젝트: dadapon/EDCB
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref andKey);
            r.Read(ref notKey);
            r.Read(ref regExpFlag);
            r.Read(ref titleOnlyFlag);
            r.Read(ref contentList);
            r.Read(ref dateList);
            r.Read(ref serviceList);
            r.Read(ref videoList);
            r.Read(ref audioList);
            r.Read(ref aimaiFlag);
            r.Read(ref notContetFlag);
            r.Read(ref notDateFlag);
            r.Read(ref freeCAFlag);
            if (version >= 3)
            {
                r.Read(ref chkRecEnd);
                r.Read(ref chkRecDay);
            }
            r.End();
        }
예제 #24
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();
        }
예제 #25
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref andKey);
            r.Read(ref notKey);
            r.Read(ref regExpFlag);
            r.Read(ref titleOnlyFlag);
            r.Read(ref contentList);
            r.Read(ref dateList);
            r.Read(ref serviceList);
            r.Read(ref videoList);
            r.Read(ref audioList);
            r.Read(ref aimaiFlag);
            r.Read(ref notContetFlag);
            r.Read(ref notDateFlag);
            r.Read(ref freeCAFlag);
            if (version >= 3)
            {
                r.Read(ref chkRecEnd);
                r.Read(ref chkRecDay);
            }
            if (version >= 5 && r.RemainSize() >= 5)
            {
                byte recNoService = 0;
                r.Read(ref recNoService);
                if (recNoService != 0)
                {
                    chkRecDay = (ushort)(chkRecDay % 10000 + 40000);
                }
                ushort durMin = 0;
                ushort durMax = 0;
                r.Read(ref durMin);
                r.Read(ref durMax);
                if (durMin > 0 || durMax > 0)
                {
                    andKey = andKey.Insert(
                        System.Text.RegularExpressions.Regex.Match(andKey, @"^(?:\^!\{999\})?(?:C!\{999\})?").Length,
                        "D!{" + ((10000 + Math.Min((int)durMin, 9999)) * 10000 + Math.Min((int)durMax, 9999)) + "}");
                }
            }
            r.End();
        }
예제 #26
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref RecMode);
            r.Read(ref Priority);
            r.Read(ref TuijyuuFlag);
            r.Read(ref ServiceMode);
            r.Read(ref PittariFlag);
            r.Read(ref BatFilePath);
            r.Read(ref RecFolderList);
            r.Read(ref SuspendMode);
            r.Read(ref RebootFlag);
            r.Read(ref UseMargineFlag);
            r.Read(ref StartMargine);
            r.Read(ref EndMargine);
            r.Read(ref ContinueRecFlag);
            r.Read(ref PartialRecFlag);
            r.Read(ref TunerID);
            if (version >= 2)
            {
                r.Read(ref PartialRecFolder);
            }
            r.End();
        }
예제 #27
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref Title);
            r.Read(ref StartTime);
            r.Read(ref DurationSecond);
            r.Read(ref StationName);
            r.Read(ref OriginalNetworkID);
            r.Read(ref TransportStreamID);
            r.Read(ref ServiceID);
            r.Read(ref EventID);
            r.Read(ref Comment);
            r.Read(ref ReserveID);
            r.Read(ref UnusedRecWaitFlag);
            r.Read(ref OverlapMode);
            r.Read(ref UnusedRecFilePath);
            r.Read(ref StartTimeEpg);
            r.Read(ref RecSetting);
            r.Read(ref ReserveStatus);
            if (version >= 5)
            {
                r.Read(ref RecFileNameList);
                r.Read(ref UnusedParam1);
            }
            r.End();
        }
예제 #28
0
        public void Read(MemoryStream s, ushort version)
        {
            var r = new CtrlCmdReader(s, version);

            r.Begin();
            r.Read(ref ID);
            r.Read(ref RecFilePath);
            r.Read(ref Title);
            r.Read(ref StartTime);
            r.Read(ref DurationSecond);
            r.Read(ref ServiceName);
            r.Read(ref OriginalNetworkID);
            r.Read(ref TransportStreamID);
            r.Read(ref ServiceID);
            r.Read(ref EventID);
            r.Read(ref Drops);
            r.Read(ref Scrambles);
            r.Read(ref RecStatus);
            r.Read(ref StartTimeEpg);
            r.Read(ref Comment);
            r.Read(ref ProgramInfo);
            r.Read(ref ErrInfo);
            if (version >= 4)
            {
                r.Read(ref ProtectFlag);
            }
            r.End();
        }