コード例 #1
0
        /// <summary>
        /// Sendet aus dem TS gefilterte Sections an den DVBApi-Client.
        /// </summary>
        /// <param name="filterNumber">Filternummer</param>
        /// <param name="data">Section-Daten</param>
        private void IcFilterData(int filterNumber, byte[] data, int len)
        {
            if (_AdapterIndex < 0)
            {
                return;
            }

            using (MemoryStream ms = new MemoryStream())
                using (BinaryWriter w = new BinaryWriter(ms))
                {
                    w.Write(filterNumber);
                    w.Write(data, 0, len);

                    w.Flush();
                    _IcEp.SendCommand(InterComCommand.FilterData, ms.ToArray());
                }
        }
コード例 #2
0
 public void ClearFilter()
 {
     _IcEp.SendCommand(InterComCommand.ClearFilter);
 }