Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed May 1, 2024
1 parent 6ca45b4 commit 1e52e19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions QRCoder/QRCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ private static BitArray PlainTextToBinaryByte(string plainText, EciMode eciMode,

private static BitArray ToBitArray(byte[] byteArray, int prefixZeros = 0)
{
// new BitArray(byteArray) is not used because it reverses the bit order within each byte
var bitArray = new BitArray(byteArray.Length * 8 + prefixZeros);
for (var i = 0; i < byteArray.Length; i++)
{
Expand Down

0 comments on commit 1e52e19

Please sign in to comment.