public ReedSolomonEncoder(GenericGF field)
{
if (!GenericGF.QR_CODE_FIELD_256.Equals(field))
{
throw new System.ArgumentException("Only QR Code is supported at this time");
}
this.field = field;
this.cachedGenerators = new ArrayList();
cachedGenerators.Add(new GenericGFPoly(field, new int[] { 1 }));
}