Ejemplo n.º 1
0
 public LzssDecompressor(byte dictionarysize, byte[] input, MainWindow window, bool fastmode)
 {
     this.fastmode = fastmode;
     this.window = window;
     AllExecuteCommand = new DelegateCommand(AllExecute);
     NextCommand = new DelegateCommand(NextExecute);
     this._dictionarysize = dictionarysize;
     this.input = input;
     dictionary = new byte[dictionarysize];
     bufor = new byte[dictionarysize];
     output = new List<byte>();
     thread = new Thread(CompressAsync);
 }
Ejemplo n.º 2
0
 public Details(bool compress, object algorithm, MainWindow window)
 {
     InitializeComponent();
     if (compress)
     {
         this.DataContext = algorithm as LzssCompressor;
     }
     else
     {
         this.DataContext = algorithm as LzssDecompressor;
     }
     this.window = window;
 }