Esempio n. 1
0
 public void Write(Tuple <byte, DefaultableSymbol <byte> > symbol)
 {
     decoderFileWriter.Write(symbol.Item1);
     if (!isByteCountEven && symbolsDecoded == symbolsCount - 1)
     {
         ++symbolsDecoded;
         isEnd = true;
         return;
     }
     decoderFileWriter.Write(symbol.Item2.Value);
     ++symbolsDecoded;
     if (symbolsDecoded == symbolsCount)
     {
         isEnd = true;
     }
 }
Esempio n. 2
0
 public void Write(byte symbol)
 {
     decoderFileWriter.Write(symbol);
     ++symbolsDecoded;
     if (symbolsDecoded == symbolsCount)
     {
         isEnd = true;
     }
 }
 public void Write(byte symbol)
 {
     decoderFileWriter.Write(symbol);
     this.decodedSymbol = symbol;
     isEnd = true;
 }