Exemple #1
0
        public void Run()
        {
            WindowReader windowReader = new WindowReader(Patch, Header);
            WindowDecoder windowDecoder = new WindowDecoder(Input, Output);

            // Decode windows until there are no more bytes to process
            while (Patch.Position < Patch.Length) {
                DisposeLastWindow();

                Window window = windowReader.Read();
                LastWindow = window;

                windowDecoder.Decode(window);
                OnProgressChanged(1.0 * Patch.Position / Patch.Length);
            }

            OnFinished();
        }
Exemple #2
0
        public void Run()
        {
            var windowReader  = new WindowReader(Patch, Header);
            var windowDecoder = new WindowDecoder(Input, Output);

            // Decode windows until there are no more bytes to process
            while (Patch.Position < Patch.Length)
            {
                DisposeLastWindow();

                var window = windowReader.Read();
                LastWindow = window;

                windowDecoder.Decode(window);
                OnProgressChanged(1.0 * Patch.Position / Patch.Length);
            }

            OnFinished();
        }