#if NET40 || NET461 using System; using System.Collections.Generic; using System.Text; namespace Apewer.Internals.QrCode { class Stream4Methods { public static void CopyTo(System.IO.Stream input, System.IO.Stream output) { byte[] buffer = new byte[16 * 1024]; int bytesRead; while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0) { output.Write(buffer, 0, bytesRead); } } } } #endif