Example #1
0
        public FilterToCode( ushort pid, Action<byte[]> callback )
            : base( pid )
        {
            // Remember
            m_FilterQueue = new FilterQueue( callback );

            // Create the MFC wrapper
            m_Class = new ClassHolder( TTBudget.LegacySize.CDVBTSFilter );

            // Construct C++ instance
            _Construct( m_Class.ClassPointer );

            // Attach destructor
            m_Class.Destructor = new ClassHolder.DestructHandler( _Destruct );

            // Overload virtual function
            m_Class[1] = new InternalDataArrivalHandler( OnDataArrival );
        }
Example #2
0
        public FilterToCode(ushort pid, Action <byte[]> callback)
            : base(pid)
        {
            // Remember
            m_FilterQueue = new FilterQueue(callback);

            // Create the MFC wrapper
            m_Class = new ClassHolder(TTBudget.LegacySize.CDVBTSFilter);

            // Construct C++ instance
            _Construct(m_Class.ClassPointer);

            // Attach destructor
            m_Class.Destructor = new ClassHolder.DestructHandler(_Destruct);

            // Overload virtual function
            m_Class[1] = new InternalDataArrivalHandler(OnDataArrival);
        }
        /// <summary>
        /// Legt das Ziel des Datenempfangs fest.
        /// </summary>
        /// <param name="dataSink">Die Methode zur Bearbeitung aller Daten.</param>
        public void SetTarget(Action <byte[]> dataSink)
        {
            // Stop all current processings
            InternalStop(false);

            // Create helper
            m_Class = new ClassHolder(LegacySize.CDVBTSFilter);

            // Construct
            CDVBTSFilter_Construct(m_Class.ClassPointer);

            // Attach destructor
            m_Class.Destructor = new ClassHolder.DestructHandler(CDVBTSFilter_Destruct);

            // Overload virtual function
            m_Class[1] = new InternalDataArrivalHandler(OnDataArrival);

            // Remember
            m_DataHandler = dataSink;
        }
Example #4
0
        /// <summary>
        /// Legt das Ziel des Datenempfangs fest.
        /// </summary>
        /// <param name="dataSink">Die Methode zur Bearbeitung aller Daten.</param>
        public void SetTarget( Action<byte[]> dataSink )
        {
            // Stop all current processings
            InternalStop( false );

            // Create helper
            m_Class = new ClassHolder( LegacySize.CDVBTSFilter );

            // Construct 
            CDVBTSFilter_Construct( m_Class.ClassPointer );

            // Attach destructor
            m_Class.Destructor = new ClassHolder.DestructHandler( CDVBTSFilter_Destruct );

            // Overload virtual function
            m_Class[1] = new InternalDataArrivalHandler( OnDataArrival );

            // Remember
            m_DataHandler = dataSink;
        }