This commit is contained in:
TheXamlGuy
2024-04-26 23:05:36 +01:00
parent 9f90ef693d
commit bc55c4649b
206 changed files with 3106 additions and 3204 deletions
@@ -5,48 +5,48 @@ namespace Gma.QrCodeNet.Encoding;
/// </summary>
public static class QRCodeConstantVariable
{
public const int MinVersion = 1;
public const int MaxVersion = 40;
public const int MinVersion = 1;
public const int MaxVersion = 40;
public const string DefaultEncoding = "iso-8859-1";
public const string UTF8Encoding = "utf-8";
public const string DefaultEncoding = "iso-8859-1";
public const string UTF8Encoding = "utf-8";
/// <summary>
/// ISO/IEC 18004:2006(E) Page 45 Chapter Generating the error correction codewords
/// Primative Polynomial = Bin 100011101 = Dec 285
/// </summary>
public const int QRCodePrimitive = 285;
/// <summary>
/// ISO/IEC 18004:2006(E) Page 45 Chapter Generating the error correction codewords
/// Primative Polynomial = Bin 100011101 = Dec 285
/// </summary>
public const int QRCodePrimitive = 285;
internal const int TerminatorNPaddingBit = 0;
internal const int TerminatorNPaddingBit = 0;
internal const int TerminatorLength = 4;
internal const int TerminatorLength = 4;
/// <summary>
/// 0xEC
/// </summary>
internal const int PadeCodewordsOdd = 0xec;
/// <summary>
/// 0xEC
/// </summary>
internal const int PadeCodewordsOdd = 0xec;
/// <summary>
/// 0x11
/// </summary>
internal const int PadeCodewordsEven = 0x11;
/// <summary>
/// 0x11
/// </summary>
internal const int PadeCodewordsEven = 0x11;
internal const int PositionStencilWidth = 7;
internal const int PositionStencilWidth = 7;
internal static bool[] PadeOdd = new bool[]
{
true, true, true, false,
true, true, false, false
};
internal static bool[] PadeOdd = new bool[]
{
true, true, true, false,
true, true, false, false
};
internal static bool[] PadeEven = new bool[]
{
false, false, false, true,
false, false, false, true
};
internal static bool[] PadeEven = new bool[]
{
false, false, false, true,
false, false, false, true
};
/// <summary>
/// URL:http://en.wikipedia.org/wiki/Byte-order_mark
/// </summary>
public static byte[] UTF8ByteOrderMark => new byte[] { 0xEF, 0xBB, 0xBF };
}
/// <summary>
/// URL:http://en.wikipedia.org/wiki/Byte-order_mark
/// </summary>
public static byte[] UTF8ByteOrderMark => new byte[] { 0xEF, 0xBB, 0xBF };
}