Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions QRCoder/PngByteQRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,7 @@ public void WriteScanlines(byte[] scanlines)
_stream.WriteByte(0x9C); // Check bits.

// Compressed data.
idatStream.Position = 0;
#if NET35
idatStream.WriteTo(_stream);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WriteTo writes the entire MemoryStream (disregarding position) to the target stream, and is a supported method across all .NET variations.

#else
idatStream.CopyTo(_stream);
#endif
// Deflate checksum.
var adler = Adler32(scanlines, 0, scanlines.Length);
WriteIntBigEndian(adler);
Expand Down