public ReedSolomonEncoder(GF256 field)
 {
     if (!GF256.QR_CODE_FIELD.Equals(field))
     {
         throw new System.ArgumentException("Only QR Code is supported at this time");
     }
     this.field = field;
     this.cachedGenerators = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
     cachedGenerators.Add(new GF256Poly(field, new int[]{1}));
 }
 public ReedSolomonDecoder(GF256 field)
 {
     this.field = field;
 }