comment properly
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/ReedSolomon/Polynomial.cs
WalletWasabi/Gma/QrCodeNet/Encoding/ReedSolomon/Polynomial.cs
@@ -58,7 +58,7 @@ namespace Gma.QrCodeNet.Encoding.ReedSolomon
/// </returns>
internal int GetCoefficient(int degree)
{
- //eg: x^2 + x + 1. degree 1, reverse position = degree + 1 = 2.
+ // Eg: x^2 + x + 1. degree 1, reverse position = degree + 1 = 2.
// Pos = 3 - 2 = 1
return Coefficients[^(degree + 1)];
}
@@ -193,8 +193,10 @@ namespace Gma.QrCodeNet.Encoding.ReedSolomon
{
throw new ArgumentException($"Cannot divide by {nameof(Polynomial)} Zero.");
}
- //this divide by other = a divide by b
+
+ // This divide by other = a divide by b
int aLength = Coefficients.Length;
+
// We will make change to aCoefficient. It will return as remainder
int[] aCoefficients = new int[aLength];
Array.Copy(Coefficients, 0, aCoefficients, 0, aLength);
@@ -207,7 +209,7 @@ namespace Gma.QrCodeNet.Encoding.ReedSolomon
}
else
{
- //quotient coefficients
+ // Quotient coefficients
// qLastIndex = alength - blength qlength = qLastIndex + 1
int[] qCoefficients = new int[(aLength - bLength) + 1];

comment properly