You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
509 B

  1. #if NET40 || NET461
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Apewer.Internals.QrCode
  6. {
  7. class Stream4Methods
  8. {
  9. public static void CopyTo(System.IO.Stream input, System.IO.Stream output)
  10. {
  11. byte[] buffer = new byte[16 * 1024];
  12. int bytesRead;
  13. while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
  14. {
  15. output.Write(buffer, 0, bytesRead);
  16. }
  17. }
  18. }
  19. }
  20. #endif