Пример #1
0
        private void ChangeProcessor(IByteProcessor newprocessor)
        {
            //既存のやつがあればリセット
            if (_currentByteProcessor != null)
            {
                _currentByteProcessor.Flush();
            }

            if (newprocessor != null)
            {
                newprocessor.Init();
            }

            _currentByteProcessor = newprocessor;
            _state = State.Normal;
        }
Пример #2
0
        private void ChangeProcessor(IByteProcessor newprocessor)
        {
            //Šù‘¶‚Ì‚â‚‚ª‚ ‚ê‚΃ŠƒZƒbƒg
            if (_currentByteProcessor != null)
            {
                _currentByteProcessor.Flush();
            }

            if (newprocessor != null)
            {
                newprocessor.Init();
            }

            _currentByteProcessor = newprocessor;
            _state = State.Normal;
        }